Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-31-2010, 04:02 AM   #9 (permalink)
Raphael
Registered Member
 
Join Date: Oct 2009
Posts: 15
Raphael is on a distinguished road
Default

Ok, i figured it out by myself. I'm drawing a Rectangle above my already drawn stuff with an adequate blendmode. It looks like this:


PHP Code:
static GLfloatvertexBufferShape NULL;
if(
vertexBufferShape == NULLvertexBufferShape malloc(sizeof(GLfloat));

vertexBufferShape[0] = 0.0;
vertexBufferShape[1] = 1024.0;
vertexBufferShape[2] = 0.0;
vertexBufferShape[3] = 0.0;
vertexBufferShape[4] = 768.0;
vertexBufferShape[5] = 1024.0;
vertexBufferShape[6] = 768.0;
vertexBufferShape[7] = 0.0;    

glBlendFunc(GL_SRC_ALPHAGL_ONE_MINUS_SRC_ALPHA);
glColor4f(0.00.00.00.01);

glVertexPointer(2GL_FLOAT0vertexBufferShape);
glDrawArrays(GL_TRIANGLE_STRIP08); 
I hope this is a good solution. If you pro guys know a better way to achieve this effect, please let me know.
For all others I hope this might help people looking for a similar solution.

Thanks,
Raphael
Raphael is offline   Reply With Quote
 

» Advertisements
» Online Users: 347
10 members and 337 guests
AyClass, Domele, esoteric, ipodphone, jakedukes3003, lancetusing, Newbie123, thephotographer, wenelecon, Wharazhasri
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,570
Threads: 94,081
Posts: 402,751
Top Poster: BrianSlick (7,990)
Welcome to our newest member, lancetusing
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:40 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.