133
134
bool _support_opengl_version_40;
134
135
bool _support_opengl_version_41;
137
int _opengl_max_texture_size;
136
138
int _opengl_max_texture_units;
137
139
int _opengl_max_texture_coords;
138
140
int _opengl_max_texture_image_units;
177
179
static STREAMSOURCE _StreamSource[MAX_NUM_STREAM];
181
, unsigned int Height
182
, unsigned int Levels
183
, BitmapFormat PixelFormat
184
, IOpenGLTexture2D **ppTexture
185
, NUX_FILE_LINE_PROTO
188
int CreateRectangleTexture(
190
, unsigned int Height
191
, unsigned int Levels
192
, BitmapFormat PixelFormat
193
, IOpenGLRectangleTexture **ppTexture
194
, NUX_FILE_LINE_PROTO
197
int CreateCubeTexture(
198
unsigned int EdgeLength
199
, unsigned int Levels
200
, BitmapFormat PixelFormat
201
, IOpenGLCubeTexture **ppCubeTexture
202
, NUX_FILE_LINE_PROTO
205
int CreateVolumeTexture(
207
, unsigned int Height
209
, unsigned int Levels
210
, BitmapFormat PixelFormat
211
, IOpenGLVolumeTexture **ppVolumeTexture
212
, NUX_FILE_LINE_PROTO
215
int CreateAnimatedTexture(
217
, unsigned int Height
219
, BitmapFormat PixelFormat
220
, IOpenGLAnimatedTexture **ppAnimatedTexture
223
int CreateVertexBuffer(
225
, VBO_USAGE Usage // Dynamic or WriteOnly
226
, IOpenGLVertexBuffer **ppVertexBuffer
229
int CreateIndexBuffer(
231
, VBO_USAGE Usage // Dynamic or WriteOnly
232
, INDEX_FORMAT Format
233
, IOpenGLIndexBuffer **ppIndexBuffer
236
int CreatePixelBufferObject(int Size, VBO_USAGE Usage, // Dynamic or WriteOnly
237
IOpenGLPixelBufferObject **ppPixelBufferObject
242
IOpenGLQuery **ppQuery);
244
int CreateVertexDeclaration(
245
const VERTEXELEMENT *pVertexElements,
246
IOpenGLVertexDeclaration **ppDecl);
248
int CreateFrameBufferObject(
249
IOpenGLFrameBufferObject **ppFrameBufferObject);
252
182
ObjectPtr<IOpenGLTexture2D> CreateTexture(
382
312
void ActivateFrameBuffer();
384
314
//! Restore the backbuffer as the render target.
385
void DeactivateFrameBuffer();
315
void DeactivateFrameBuffer();
387
317
unsigned int GetPixelStoreAlignment() const;
449
379
BaseTexture* CreateSystemCapableTexture(NUX_FILE_LINE_PROTO);
451
bool SUPPORT_GL_ARB_TEXTURE_NON_POWER_OF_TWO() const
381
bool SUPPORT_GL_ARB_TEXTURE_NON_POWER_OF_TWO() const
453
383
return gpu_info_->Support_ARB_Texture_Non_Power_Of_Two();
458
388
return gpu_info_->Support_EXT_Texture_Rectangle();
461
bool SUPPORT_GL_ARB_TEXTURE_RECTANGLE() const
391
bool SUPPORT_GL_ARB_TEXTURE_RECTANGLE() const
463
393
return gpu_info_->Support_ARB_Texture_Rectangle();
398
int _glsl_version_major; //!< GLSL major version.
399
int _glsl_version_minor; //!< GLSL major version.
469
401
int opengl_major_; //!< OpenGL major version.
470
402
int opengl_minor_; //!< OpenGL minor version.
478
410
unsigned int pixel_store_alignment_;
479
411
std::vector<PixelBufferObject> _PixelBufferArray;
482
413
bool OGL_EXT_SWAP_CONTROL;
483
414
bool GL_ARB_VERTEX_PROGRAM;
484
415
bool GL_ARB_FRAGMENT_PROGRAM;