¡@

Home 

2014/10/15 ¤U¤È 10:09:39

iphone Programming Glossary: glgentextures

Draw to offscreen renderbuffer in OpenGL ES (iPhone)

http://stackoverflow.com/questions/1853551/draw-to-offscreen-renderbuffer-in-opengl-es-iphone

glGenFramebuffersOES 1 texturebuffer glBindFramebufferOES GL_FRAMEBUFFER_OES texturebuffer create the texture glGenTextures 1 canvastexture glBindTexture GL_TEXTURE_2D canvastexture glTexImage2D GL_TEXTURE_2D 0 GL_RGBA 512 512 0 GL_RGBA GL_UNSIGNED_BYTE..

OpenGL ES; rendering texture created from CGBitmapContext

http://stackoverflow.com/questions/2713890/opengl-es-rendering-texture-created-from-cgbitmapcontext

GL_MODELVIEW glColor4f 1.0f 1.0f 1.0f 1.0f glEnable GL_TEXTURE_2D glBlendFunc GL_ONE GL_SRC_COLOR GLuint texture 1 glGenTextures 1 texture 0 glBindTexture GL_TEXTURE_2D texture 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri..

render to floating point texture under iOS

http://stackoverflow.com/questions/3850569/render-to-floating-point-texture-under-ios

I'm having trouble binding a floating point texture to a framebuffer object. Here's my attempt GLuint textureHandle glGenTextures 1 textureHandle glBindTexture GL_TEXTURE_2D textureHandle glTexImage2D GL_TEXTURE_2D 0 GL_LUMINANCE 256 256 0 GL_LUMINANCE..

Can example “GLImageProcessing” work with multi filters

http://stackoverflow.com/questions/4375479/can-example-glimageprocessing-work-with-multi-filters

GLint SystemFBO Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture GL_TEXTURE_2D ResultTexture glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST..

Why is this OpenGL ES code slow on iPhone?

http://stackoverflow.com/questions/450042/why-is-this-opengl-es-code-slow-on-iphone

2 GL_SHORT 0 spriteTexcoords glEnableClientState GL_TEXTURE_COORD_ARRAY sprite data is preloaded. 512x512 rgba8888 glGenTextures 1 spriteTexture glBindTexture GL_TEXTURE_2D spriteTexture glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width height 0 GL_RGBA GL_UNSIGNED_BYTE..

Explain how OpenGL ES background images work

http://stackoverflow.com/questions/4820372/explain-how-opengl-es-background-images-work

the images and pop the matrices off after. Here is some code to help you with the image draw to opengl glPushMatrix glGenTextures 1 texture 0 glBindTexture GL_TEXTURE_2D texture 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri..

GLImageProcessing Multiple Filters?

http://stackoverflow.com/questions/6425861/glimageprocessing-multiple-filters

GLint SystemFBO Create the texture and the FBO the will hold the result of applying the first filter glGenTextures 1 ResultTexture glBindTexture GL_TEXTURE_2D ResultTexture glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST.. share improve this question You can extend this scheme by alternating between two buffers GLuint stageTextures 2 glGenTextures 2 stageTextures glBindTexture GL_TEXTURE_2D stageTexture 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_NEAREST..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

CVPixelBufferGetHeight cameraFrame int bufferWidth CVPixelBufferGetWidth cameraFrame glClear GL_COLOR_BUFFER_BIT glGenTextures 1 videoFrameTexture_ glBindTexture GL_TEXTURE_2D videoFrameTexture_ glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER..

Save OpenGL Drawn item as a Image

http://stackoverflow.com/questions/9660723/save-opengl-drawn-item-as-a-image

to release it to avoid memory leaks. CGContextRelease brushContext Use OpenGL ES to generate a name for the texture. glGenTextures 1 brushTexture Bind the texture name. glBindTexture GL_TEXTURE_2D brushTexture Set the texture parameters to use a minifying..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

to release it to avoid memory leaks. CGContextRelease brushContext Use OpenGL ES to generate a name for the texture. glGenTextures 1 brushTexture Bind the texture name. glBindTexture GL_TEXTURE_2D brushTexture Set the texture parameters to use a minifying..