Article View: free.pl.comp.games.development
Article #42Re: Definicje zmiennych funkcji OpenGL
From: mx
Date: Tue, 01 Jun 2004 20:17
Date: Tue, 01 Jun 2004 20:17
24 lines
1859 bytes
1859 bytes
> W nag��wku glext.h po zdefiniowaniu stalej GL_GLEXT_PROTOTYPES > dost�pne s� deklaracje funkcji OpenGL. Chcia�bym z nich skorzysta�, jednak�e > mam problem. Dla przyk�adu pierwsza z brzegu: > > deklaracja: > GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf); > typ: > typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, > GLclampf blue, GLclampf alpha); > > do tego nale�y zdefiniowa� zapewne sam� zmienna (jest inna droga?), ja to > robi� nast�puj�co: > PFNGLBLENDCOLORPROC glBlendColor = NULL; > > Potem oczywi�cie pobieram odpowiedni adres, ale... ale przy kompilacji > dostaj� nast�puj�cy b��d: > error C2372: 'glBlendColor' : redefinition; different types of indirection > > Macie mo�e poj�cie co �le robi�? tak, nie definiuj GL_GLEXT_PROTOTYPES :] typedefy wystarcza :)
Technical Details
Message-ID:
<c9iodc$bd4$1@nemesis.news.tpi.pl>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!teleglobe.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<c9fplj$l6s$1@atlantis.news.tpi.pl>Show Full Headers
Complete Article Headers
X-Google-Language: POLISH,Latin2 X-Google-Thread: 1162ab,5403c24b6b5e0d59 X-Google-Attributes: gid1162ab,public Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!teleglobe.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "mx" <fuck@spam.pl> Newsgroups: free.pl.comp.games.development Subject: Re: Definicje zmiennych funkcji OpenGL Date: Tue, 1 Jun 2004 22:17:30 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 26 Message-ID: <c9iodc$bd4$1@nemesis.news.tpi.pl> References: <c9fplj$l6s$1@atlantis.news.tpi.pl> NNTP-Posting-Host: ahm84.neoplus.adsl.tpnet.pl X-Trace: nemesis.news.tpi.pl 1086121197 11684 83.29.9.84 (1 Jun 2004 20:19:57 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Tue, 1 Jun 2004 20:19:57 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409