#include <driver_opengl.h>
Inheritance diagram for NL3D::CTextureDrvInfosGL:
Public Member Functions | |
CTextureDrvInfosGL (IDriver *drv, ItTexDrvInfoPtrMap it, CDriverGL *drvGl) | |
const sint & | getRefCount () const |
~CTextureDrvInfosGL () | |
Data Fields | |
CDriverGL * | _Driver |
bool | Compressed |
sint | crefs |
GLuint | ID |
ITexture::TMagFilter | MagFilter |
ITexture::TMinFilter | MinFilter |
bool | MipMap |
CPtrInfo * | pinfo |
uint32 | TextureMemory |
ITexture::TWrapMode | WrapS |
ITexture::TWrapMode | WrapT |
Static Public Attributes | |
CPtrInfo | NullPtrInfo |
Friends | |
struct | CPtrInfo |
|
Definition at line 60 of file driver_opengl_texture.cpp. References Compressed, ID, NL3D::ItTexDrvInfoPtrMap, MipMap, and TextureMemory.
00060 : ITextureDrvInfos(drv, it) 00061 { 00062 // The id is auto created here. 00063 glGenTextures(1,&ID); 00064 00065 Compressed= false; 00066 MipMap= false; 00067 TextureMemory= 0; 00068 00069 // Nb: at Driver dtor, all tex infos are deleted, so _Driver is always valid. 00070 _Driver= drvGl; 00071 } |
|
Definition at line 73 of file driver_opengl_texture.cpp. References NL3D::CDriverGL::_AllocatedTextureMemory, NL3D::CDriverGL::_TextureUsed, ID, and TextureMemory.
00074 { 00075 // The id is auto deleted here. 00076 glDeleteTextures(1,&ID); 00077 00078 // release profiling texture mem. 00079 _Driver->_AllocatedTextureMemory-= TextureMemory; 00080 00081 // release in TextureUsed. 00082 _Driver->_TextureUsed.erase (this); 00083 } |
|
Definition at line 70 of file smart_ptr.h. References NLMISC::CRefCount::crefs, and sint.
00071 { 00072 return crefs; 00073 } |
|
Definition at line 67 of file smart_ptr.h. |
|
Reimplemented from NL3D::ITextureDrvInfos. Definition at line 117 of file driver_opengl.h. |
|
Definition at line 110 of file driver_opengl.h. Referenced by CTextureDrvInfosGL(), NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::swapTextureHandle(). |
|
Definition at line 79 of file smart_ptr.h. Referenced by NLMISC::CRefCount::CRefCount(), NLMISC::CRefCount::getRefCount(), and NLMISC::CRefCount::~CRefCount(). |
|
Definition at line 108 of file driver_opengl.h. Referenced by NL3D::CDriverGL::copyFrameBufferToTexture(), CTextureDrvInfosGL(), NL3D::CDriverGL::getTextureHandle(), NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::swapTextureHandle(), NL3D::CDriverGL::uploadTexture(), and ~CTextureDrvInfosGL(). |
|
Definition at line 123 of file driver_opengl.h. Referenced by NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::swapTextureHandle(), and NL3D::translateMagFilterToGl(). |
|
Definition at line 124 of file driver_opengl.h. Referenced by NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::swapTextureHandle(), and NL3D::translateMinFilterToGl(). |
|
Definition at line 112 of file driver_opengl.h. Referenced by CTextureDrvInfosGL(), NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::swapTextureHandle(), and NL3D::translateMinFilterToGl(). |
|
Referenced by NLMISC::CRefCount::CRefCount(). |
|
Definition at line 80 of file smart_ptr.h. Referenced by NLMISC::CRefCount::CRefCount(), and NLMISC::CRefCount::~CRefCount(). |
|
Definition at line 115 of file driver_opengl.h. Referenced by CTextureDrvInfosGL(), NL3D::CDriverGL::getUsedTextureMemory(), NL3D::CDriverGL::setupTextureEx(), NL3D::CDriverGL::swapTextureHandle(), and ~CTextureDrvInfosGL(). |
|
Definition at line 121 of file driver_opengl.h. Referenced by NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::swapTextureHandle(). |
|
Definition at line 122 of file driver_opengl.h. Referenced by NL3D::CDriverGL::setupTextureEx(), and NL3D::CDriverGL::swapTextureHandle(). |