home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


OpenGL

by Der/Nalia on 04/17/2007 06:03, 1 messages, last message: 04/17/2007 11:59, 1017 views, last view: 05/05/2024 02:57

Well, I suppose this thread could be about anything OGL related.


So I will start by asking:

glBegin(GL_QUADS);
glColor3f(1.0f,0.0f,0.0f);
glVertex2f(0.0f,0.0f);
glVertex2f(0.0f,80.0f);
glVertex2f(80.0f,80.0f);
glVertex2f(80.0f,0.0f);
glEnd();

what is wrong with that...

I have inserted it into GamePlayHud in fps.cpp ... it does draw, but it is black, and i have told it to be red...

any thoughts?

   Board Index   

#1: opengl state

by rpointon on 04/17/2007 11:59

glDisable(GL_TEXTURE_2D);
notextureshader->set();
... draw colored quads...
defaultshader->set();
glEnable(GL_TEXTURE_2D);

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53864308 visitors requested 71639452 pages
page created in 0.016 seconds using 10 queries
hosted by Boost Digital