.| Autor | Beitrag |
|---|---|
|
000 01.03.2002, 16:08 Gnomo |
Hi! |
|
Profil || Suche |
|
001 01.03.2002, 16:15 Tron |
wie bringst du den text auf den bildschirm? glBitmap oder als texturierte polygone? fallse polys, wie sieht die textur aus? --'KEINE PANIK' - aus der Triologie in fuenf Baenden von Douglas Adams 'FÜR DEINN FERD' - aus 'Gevatter Tod' von Terry Pratchett |
|
Profil || Suche |
|
002 01.03.2002, 17:31 Gnomo |
Das ist der Code meiner Engine: //Font-Engine #define MAX_CHARS 256 //Erstellen eines OpenGL Font FontListId=glGenLists(MAX_CHARS); //Hier machen wir die Font HoldFont=(HFONT)SelectObject(hDC,hFont); wglUseFontBitmaps(hDC,0,MAX_CHARS-1,FontListId); return FontListId; //Position des Textes glMatrixMode(GL_PROJECTION); y=SCREEN_HEIGHT-FONT_HEIGHT-y; glViewport(x-1,y-1,0,0); glRasterPos4f(0,0,0,1); glPopMatrix(); //Eigentliches Zeichnen des Textes if(strString==NULL) va_start(argumentPtr,strString); PositionText( x, y); glPushAttrib(GL_LIST_BIT); glListBase(FontListID); glCallLists(strlen(strText),GL_UNSIGNED_BYTE,strText); glPopAttrib(); //Freigeben des Speichers Hiermit schreibe ich: |
|
Profil || Suche |
|
003 01.03.2002, 17:51 Tron |
was meinst du mit allem anderen? btw: du hast 4 parameter an deinem glColor3f... --'KEINE PANIK' - aus der Triologie in fuenf Baenden von Douglas Adams 'FÜR DEINN FERD' - aus 'Gevatter Tod' von Terry Pratchett |
|
Profil || Suche |
|
004 01.03.2002, 19:24 Gnomo |
Damit meine ich alles andere, was ich mit Ogl gezeichnet habe. -- |
|
Profil || Suche |
|
005 01.03.2002, 19:27 Gnomo |
Ach ja. Das was du vorgeschlagen hast, also glColor3f(1.0f, 1.0f, 1.0f) nach der textausgabe funktioniert nicht, das hab ich auch schon versucht. -- |
|
Profil || Suche |
|
006 01.03.2002, 21:29 Tron |
hmm, dann machst du irgendwas falsch, bei mir tut das naemlich... 'KEINE PANIK' - aus der Triologie in fuenf Baenden von Douglas Adams 'FÜR DEINN FERD' - aus 'Gevatter Tod' von Terry Pratchett |
|
Profil || Suche |
|
007 02.03.2002, 13:13 Gnomo |
Das is meine RenderScene Funktion: int DrawGLScene(GLvoid) glColor3f(1.0f,1.0f,1.0f); glTranslatef(0.0f,0.0f,depth); glBegin(GL_QUADS); xrot+=xspeed;
CalculateFps(); |
|
Profil || Suche |
|
008 02.03.2002, 13:15 Archangel |
ROFL, ich kann nicht mehr... glColor3f(1.0f,1.0f,1.0f); die farbe, mit der du das restliche drawst, ist identisch mit der textfarbe, WIE bitte schön soll das dann in ner anderen farbe sein ? -- |
|
Profil || Suche |
|
009 02.03.2002, 13:16 blair |
uh... den code kenne ich er hat nehe entdeckt... --because our freedom sits at the end of a gun |
|
Profil || Suche |
|
010 02.03.2002, 14:57 Gnomo |
@blair der code is nicht von NeHe -- |
|
Profil || Suche |
|
011 02.03.2002, 14:59 Gnomo |
@archangel ich kann da jede farbe hinmachen,die ich will aber das klappt nicht. -- |
|
Profil || Suche |

