NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Texture Class Reference

#include <Texture.hpp>

Public Member Functions

 Texture (void)
 
 Texture (const Texture &other)
 
 Texture (Image *image, const String &id="")
 
 ~Texture (void)
 
bool exists (void) const
 
String getID (void) const
 
const ImagegetImage (void) const
 
Vec2i getSize (void) const
 
void clear (void)
 
void set (const Texture &other)
 
GLuint getGLTexture (const ImageFormat::ID desiredFormat=ImageFormat::ID_Max, bool generateMipmaps=true) const
 
CUarray getCudaArray (const ImageFormat::ID desiredFormat=ImageFormat::ID_Max) const
 
Texture getMipLevel (int level) const
 
Textureoperator= (const Texture &other)
 
bool operator== (const Texture &other) const
 
bool operator!= (const Texture &other) const
 

Static Public Member Functions

static Texture find (const String &id)
 
static Texture import (const String &fileName)
 

Detailed Description

Definition at line 37 of file Texture.hpp.

Constructor & Destructor Documentation

FW::Texture::Texture ( void  )
inline

Definition at line 54 of file Texture.hpp.

FW::Texture::Texture ( const Texture other)
inline

Definition at line 55 of file Texture.hpp.

Texture::Texture ( Image image,
const String id = "" 
)

Definition at line 39 of file Texture.cpp.

FW::Texture::~Texture ( void  )
inline

Definition at line 57 of file Texture.hpp.

Member Function Documentation

void FW::Texture::clear ( void  )
inline

Definition at line 67 of file Texture.hpp.

bool FW::Texture::exists ( void  ) const
inline

Definition at line 62 of file Texture.hpp.

Texture Texture::find ( const String id)
static

Definition at line 47 of file Texture.cpp.

CUarray Texture::getCudaArray ( const ImageFormat::ID  desiredFormat = ImageFormat::ID_Max) const

Definition at line 93 of file Texture.cpp.

GLuint Texture::getGLTexture ( const ImageFormat::ID  desiredFormat = ImageFormat::ID_Max,
bool  generateMipmaps = true 
) const

Definition at line 82 of file Texture.cpp.

String FW::Texture::getID ( void  ) const
inline

Definition at line 63 of file Texture.hpp.

const Image* FW::Texture::getImage ( void  ) const
inline

Definition at line 64 of file Texture.hpp.

Texture Texture::getMipLevel ( int  level) const

Definition at line 104 of file Texture.cpp.

Vec2i FW::Texture::getSize ( void  ) const
inline

Definition at line 65 of file Texture.hpp.

Texture Texture::import ( const String fileName)
static

Definition at line 56 of file Texture.cpp.

bool FW::Texture::operator!= ( const Texture other) const
inline

Definition at line 76 of file Texture.hpp.

Texture& FW::Texture::operator= ( const Texture other)
inline

Definition at line 74 of file Texture.hpp.

bool FW::Texture::operator== ( const Texture other) const
inline

Definition at line 75 of file Texture.hpp.

void Texture::set ( const Texture other)

Definition at line 70 of file Texture.cpp.


The documentation for this class was generated from the following files: