| View previous topic :: View next topic |
| Author |
Message |
Blitz_Commander Guest
|
Posted: Thu Aug 04, 2005 9:01 am Post subject: Using Delphi OpenGL12 unit in C Builder |
|
|
Dear All,
I am a newbie with C Builder and Delphi.
I am trying to compile a C Builder program that uses a Delphi Opengl Unit.
The Delphi Opengl unit is called OpenGL12 and can be found in a standard
OpenGL12.pas and OpenGL12.Hpp file.
Now the problem is when I add the Opengl12.pas and Opengl12.hpp files in
together with my C Builder code, why is it I keep getting the error :-
[Linker Error] Unresolved external 'CreateRenderingContext' referenced
from E:CPPBUILDERTERRAIN X5 VER 3.0MAIN.OBJ
[Linker Error] Unresolved external 'ActivateRenderingContext' referenced
from E:CPPBUILDERTERRAIN X5 VER 3.0MAIN.OBJ
This is strange because both these functions are found in OpenGL12.pas and
OpenGL12.hpp ???
If you would like me to email you my code which is about 2 megs in a zip
file, please email me at
[email]Blitz_Commander (AT) yahoo (DOT) com.sg[/email].
It is a very good looking 3d terrain engine - The delphi version.
Perhaps can someone please try to help me out here ?
Thank you
Blitz
|
|
| Back to top |
|
 |
gj_williams2000@yahoo.co. Guest
|
Posted: Fri Aug 05, 2005 8:21 am Post subject: Re: Using Delphi OpenGL12 unit in C Builder |
|
|
To use opengl in Builder you need to include the cpp gl files. A .pas
file is useless to C Builder
Try:
#include <glgl.h>
#include <glglu.h>
#include <glglut.h>
HTH Gareth
|
|
| Back to top |
|
 |
|