Article View: free.pl.comp.games.development
Article #41Definicje zmiennych funkcji OpenGL
From: Morel
Date: Mon, 31 May 2004 17:22
Date: Mon, 31 May 2004 17:22
24 lines
1948 bytes
1948 bytes
Witam. 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�? Pozdrawiam Mariusz
Technical Details
Message-ID:
<c9fplj$l6s$1@atlantis.news.tpi.pl>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed.kabelfoon.nl!napean.nntp.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: POLISH,Latin2 X-Google-Thread: 1162ab,5403c24b6b5e0d59,start X-Google-Attributes: gid1162ab,public Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed.kabelfoon.nl!napean.nntp.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Morel" <moorell2@poczta.onet.pl> Newsgroups: free.pl.comp.games.development Subject: Definicje zmiennych funkcji OpenGL Date: Mon, 31 May 2004 19:22:22 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 26 Message-ID: <c9fplj$l6s$1@atlantis.news.tpi.pl> NNTP-Posting-Host: 195.116.168.11 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8bit X-Trace: atlantis.news.tpi.pl 1086024179 21724 195.116.168.11 (31 May 2004 17:22:59 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Mon, 31 May 2004 17:22:59 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000