C language function:glPrioritizeTextures sample codes

Search sample code in the internet.It is the result.


TITLE : QOpenGLFunctions_2_0 Class | Qt GUI 5.9
void glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLfloat *priorities).......
http://doc.qt.io/qt-5/qopenglfunctions-2-0.html


TITLE : QOpenGLFunctions_2_0 Class | Qt GUI 5.9
void QOpenGLFunctions_2_0::glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLfloat *priorities).......
http://doc.qt.io/qt-5/qopenglfunctions-2-0.html
TITLE : Chapter 9 - OpenGL Programming Guide
void glPrioritizeTextures(GLsizei n, const GLuint *textureNames,.......
http://www.glprogramming.com/red/chapter09.html
TITLE : Chapter 9 - OpenGL Programming Guide
glPrioritizeTextures() does not require that any of the textures in textureNames be bound. However, the priority might not have any effect on a texture object until it is initially bound........
http://www.glprogramming.com/red/chapter09.html
TITLE : BlitzMax - test page |
* glPrioritizeTextures().......
http://www.graphio.net/@page_id=1111
TITLE : OpenGL FAQ / 21 Texture Mapping
* On systems with limited texure memory, set the priority of each texture object with glPrioritizeTextures() to minimize texture memory thrashing........
http://www.opengl.org/archives/resources/faq/technical/texture.htm
TITLE : OpenGL FAQ / 21 Texture Mapping
The following functions affect and store state in texture objects: glTexImage*(), glTexSubImage*(), glCopyTexImage*(), glCopyTexSubImage*(), glTexParameter*(), and glPrioritizeTextures(). Since the GLU routines for building mipmap pyramids ultimately call glTexImage*(), they also affect texture object state.Noticeably absent from this list are glTexEnv*() and glTexGen*(); they do not store state in texture objects........
http://www.opengl.org/archives/resources/faq/technical/texture.htm
TITLE : OpenGL driver "memory leak"
By the way, I noticed you are using glPrioritizeTextures(), which is in fact a way to hint to OpenGL which textures it should try to keep in texture memory, or, put the other way round, which ones should be considered to be replaced first........
http://www.opengl.org/discussion_boards/showthread.php/166927-OpenGL-driver-memory-leak
TITLE : OpenGL driver "memory leak"
Afaik glPrioritizeTextures() is only used "in case", i.e. when the driver actually needs to free up memory. Given my gfx card has 1 GB of RAM, it should never have to swap out any data on my system with my application........
http://www.opengl.org/discussion_boards/showthread.php/166927-OpenGL-driver-memory-leak
search Google

https://www.google.com/#q=glPrioritizeTextures