NTrace
GPU ray tracing framework
|
#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 Image * | getImage (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 |
Texture & | operator= (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) |
Definition at line 37 of file Texture.hpp.
|
inline |
Definition at line 54 of file Texture.hpp.
|
inline |
Definition at line 55 of file Texture.hpp.
Definition at line 39 of file Texture.cpp.
|
inline |
Definition at line 57 of file Texture.hpp.
Definition at line 67 of file Texture.hpp.
|
inline |
Definition at line 62 of file Texture.hpp.
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.
Definition at line 63 of file Texture.hpp.
Definition at line 64 of file Texture.hpp.
Texture Texture::getMipLevel | ( | int | level | ) | const |
Definition at line 104 of file Texture.cpp.
Definition at line 65 of file Texture.hpp.
Definition at line 56 of file Texture.cpp.
|
inline |
Definition at line 76 of file Texture.hpp.
Definition at line 74 of file Texture.hpp.
|
inline |
Definition at line 75 of file Texture.hpp.
Definition at line 70 of file Texture.cpp.