¡@

Home 

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

iphone Programming Glossary: gl_linear

Hardware accelerated h.264 decoding to texture, overlay or similar in iOS

http://stackoverflow.com/questions/10646657/hardware-accelerated-h-264-decoding-to-texture-overlay-or-similar-in-ios

texture outputTexture glBindTexture GL_TEXTURE_2D outputTexture glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE.. glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE..

OpenGL ES 2.0 texture distortion on large geometry GL_REPEAT

http://stackoverflow.com/questions/11370074/opengl-es-2-0-texture-distortion-on-large-geometry-gl-repeat

matrix does not help Changing texture filtering options does not help Disabling mipmapping or using GL_NEAREST GL_LINEAR does nothing Enabling disabling anisotropic does nothing The banding effect still occurs even when using GL_CLAMP Dividing..

Draw to offscreen renderbuffer in OpenGL ES (iPhone)

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

NSLog @ failed to make complete framebuffer object x status glTexParameterf GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameterf GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glClearColor 1.0 1.0 1.0 1.0 glViewport 0 0 512 512 glClear.. glTexParameterf GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameterf GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glClearColor 1.0 1.0 1.0 1.0 glViewport 0 0 512 512 glClear GL_COLOR_BUFFER_BIT setTargetToTexture function glBindFramebufferOES..

How do I create blurred text in an iPhone view?

http://stackoverflow.com/questions/227305/how-do-i-create-blurred-text-in-an-iphone-view

0 4 Pass two accumulate two rotated linear samples glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE for i 0.. glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE for i 0 i 4 i tmpquad i .x quad i .s 1.5 offw tmpquad i .y quad i .t..

OpenGL ES; rendering texture created from CGBitmapContext

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

1 glGenTextures 1 texture 0 glBindTexture GL_TEXTURE_2D texture 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR int width 50 int height 50 void textureData malloc width height.. 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR int width 50 int height 50 void textureData malloc width height 4 CGColorSpaceRef cSp CGColorSpaceCreateDeviceRGB CGContextRef..

How to draw a background fast in cocos2d?

http://stackoverflow.com/questions/3899903/how-to-draw-a-background-fast-in-cocos2d

0 0 size.width size.height background.position ccp size.width 2 size.height 2 ccTexParams params GL_LINEAR GL_LINEAR GL_REPEAT GL_REPEAT background.texture setTexParameters params If I remove the background I get a solid 60fps... 0 0 size.width size.height background.position ccp size.width 2 size.height 2 ccTexParams params GL_LINEAR GL_LINEAR GL_REPEAT GL_REPEAT background.texture setTexParameters params If I remove the background I get a solid 60fps. I've tried..

Why is this OpenGL ES code slow on iPhone?

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

width height 0 GL_RGBA GL_UNSIGNED_BYTE spriteData free spriteData glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glEnable GL_TEXTURE_2D glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA glEnable GL_BLEND void drawView .. glClear GL_COLOR_BUFFER_BIT.. closely maps GL_NEAREST to the pixel you are drawing. It might look up 4 texels since you are using the higher quality GL_LINEAR method to average the best texel. Still if the pixel count in your triangle is say 100 then the most texture bytes you will..

Explain how OpenGL ES background images work

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

glGenTextures 1 texture 0 glBindTexture GL_TEXTURE_2D texture 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR UIImage image UIImage imageNamed @ map1.jpg if image nil NSLog.. 0 glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR UIImage image UIImage imageNamed @ map1.jpg if image nil NSLog @ Do real error checking here GLuint width CGImageGetWidth..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

videoFrameTexture_ glBindTexture GL_TEXTURE_2D videoFrameTexture_ glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE.. glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER GL_LINEAR glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_S GL_CLAMP_TO_EDGE glTexParameteri GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE..

Repeating background in cocos2d has black edges!

http://stackoverflow.com/questions/6736759/repeating-background-in-cocos2d-has-black-edges

bg CCSprite spriteWithFile @ pattern11.jpg rect CGRectMake 0 0 1000 520 bg setPosition ccp 0 0 ccTexParams params GL_LINEAR GL_LINEAR GL_REPEAT GL_REPEAT bg.texture setTexParameters params self addChild bg z 0 iphone cocos2d background image.. spriteWithFile @ pattern11.jpg rect CGRectMake 0 0 1000 520 bg setPosition ccp 0 0 ccTexParams params GL_LINEAR GL_LINEAR GL_REPEAT GL_REPEAT bg.texture setTexParameters params self addChild bg z 0 iphone cocos2d background image share improve..

Save OpenGL Drawn item as a Image

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

to use a minifying filter and a linear filer weighted average glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR Specify a 2D texture image providing the a pointer to the image data in memory glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width..

Record the drawing as a m4v video file - OpenGL

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

to use a minifying filter and a linear filer weighted average glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR Specify a 2D texture image providing the a pointer to the image data in memory glTexImage2D GL_TEXTURE_2D 0 GL_RGBA width..