Win32/OpenGL antialiasing

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Yeah google is my friend but if I need to install extensions I'd prefer not to have it cause as I said, it would be nice but not necessary right now.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

....................
wtf do you mean "install extension"?
Obviously you didn't google.
GOOGLE IT! It's one file. One header.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Obviously you didn't google.
I didn't say I did :wink:

I've never worked with OpenGL extensions before but it seems that it only means adding headers so I'll try..

Thanks again :)

P.S
Where should I put that file?

Edit:
I found that file but not where I should put it ..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Ok I found but now I get this:
1>------ Build started: Project: Irrlicht, Configuration: Release - Fast FPU Win32 ------
1>Compiling...
1>COpenGLDriver.cpp
1>.\COpenGLDriver.cpp(309) : error C2065: 'PFNWGLCHOOSEPIXELFORMATARBPROC' : undeclared identifier
1>.\COpenGLDriver.cpp(309) : error C2146: syntax error : missing ';' before identifier 'wglChoosePixelFormat_ARB'
1>.\COpenGLDriver.cpp(309) : error C2065: 'wglChoosePixelFormat_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(309) : error C2065: 'PFNWGLCHOOSEPIXELFORMATARBPROC' : undeclared identifier
1>.\COpenGLDriver.cpp(309) : error C2146: syntax error : missing ';' before identifier 'wglGetProcAddress'
1>.\COpenGLDriver.cpp(310) : error C2065: 'wglChoosePixelFormat_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(324) : error C2065: 'WGL_DRAW_TO_WINDOW_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(325) : error C2065: 'WGL_SUPPORT_OPENGL_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(326) : error C2065: 'WGL_ACCELERATION_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(326) : error C2065: 'WGL_FULL_ACCELERATION_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(327) : error C2065: 'WGL_COLOR_BITS_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(328) : error C2065: 'WGL_ALPHA_BITS_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(329) : error C2065: 'WGL_DEPTH_BITS_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(330) : error C2065: 'WGL_STENCIL_BITS_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(331) : error C2065: 'WGL_DOUBLE_BUFFER_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(332) : error C2065: 'WGL_SAMPLE_BUFFERS_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(333) : error C2065: 'WGL_SAMPLES_ARB' : undeclared identifier
1>.\COpenGLDriver.cpp(343) : error C3861: 'wglChoosePixelFormat_ARB': identifier not found
1>.\COpenGLDriver.cpp(2538) : warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data
1>Build log was saved at "file://d:\Programming\Libraries\Graphic Engines\3D Engines\Irrlicht\Irrlicht SDK (trunk)\source\Irrlicht\Release - Fast FPU\BuildLog.htm"
1>Irrlicht - 18 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
stephaneR
Posts: 12
Joined: Fri Mar 28, 2008 9:10 pm

Post by stephaneR »

fyi, i got the .h from http://www.opengl.org/registry/api/wglext.h, apply the patch and it compiles fine. and running the hello world tutorial shows working antialiasing.
<edit> i put the .h in \irrlicht\trunk\source\Irrlicht </edit>
congrats.

Stephane
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Hi,
Thanks, it works though after doing some testing with my engine's demo it seems somethings goes wrong but I don't have the time to pin point the reason, sorry :wink:
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply