/*! \file TextureHandle.h
 *  \author Jared Hoberock
 *  \brief Defines the interface to an opaque
 *         pointer type for Textures.
 */

#pragma once

#include <string>

typedef unsigned int TextureHandle;

struct TextureParameter
{
  inline TextureParameter(void)
    :mHandle(0),mAlias(""){}

  inline TextureParameter(const std::string &alias)
    :mHandle(0),mAlias(alias){}

  inline TextureParameter(const TextureHandle &h)
    :mHandle(h),mAlias(""){}

  operator TextureHandle (void) const {return mHandle;}

  TextureHandle mHandle;

  // filename or other alias for a Texture to use during shading
  // if this is not '' during preprocess, the texture referred to
  // by this alias will be loaded and bound
  std::string mAlias;
}; // end TextureParameter


/*! \file TextureHandle.h
 *  \author Jared Hoberock
 *  \brief Defines the interface to an opaque
 *         pointer type for Textures.
 */

#pragma once

#include <string>

typedef unsigned int TextureHandle;

struct TextureParameter
{
  inline TextureParameter(void)
    :mHandle(0),mAlias(""){}

  inline TextureParameter(const std::string &alias)
    :mHandle(0),mAlias(alias){}

  inline TextureParameter(const TextureHandle &h)
    :mHandle(h),mAlias(""){}

  inline operator TextureHandle (void) const {return mHandle;}

  TextureHandle mHandle;

  // filename or other alias for a Texture to use during shading
  // if this is not '' during preprocess, the texture referred to
  // by this alias will be loaded and bound
  std::string mAlias;
}; // end TextureParameter


Make the cast operator inline for use with CUDA
Make the cast operator inline for use with CUDA


git-svn-id: eeeef91d721e48f02083ec31b1220ddf564a51e4@1671 3bb10773-34f4-0310-b88c-ec9d511ba0d9
