Hey does anyone have a simple base project for eclipse for SDL_2.0/OPENGL ES 1.1/NDK Base? that complies and works?
I’m getting a huge headache, just trying to get OpenGL enabled using SDL 1.2. Just spend 3 hours trying to get OpenGL going with no success. #include <GLES/gl.h> works but I still get this.
stuff like this:
Description Resource Path Location Type
’GL_QUADS’ was not declared in this scope main.cpp /SDLActivity/jni/src line 42 C/C++ Problem??
I’ve been advised to go SDL 2.0, but I also need OpenGL working and the NDK C++. But I’m have massive trouble just getting a working base.
OpenGL ES is not OpenGL, it’s just a subset made especifically for
very low-end devices (such as mobile). GL_QUADS doesn’t exist in
OpenGL ES, for instance (you need to use two triangles). This is your
issue.
May want to look up more about OpenGL ES first because otherwise you
won’t get anywhere.
2013/4/27, Timodor :> Hey does anyone have a simple base project for eclipse for SDL_2.0/OPENGL ES
1.1/NDK Base? that complies and works?
I’m getting a huge headache, just trying to get OpenGL enabled using SDL
1.2. Just spend 3 hours trying to get OpenGL going with no success. #include <GLES/gl.h> works but I still get this.
stuff like this:
Description Resource Path Location Type
’GL_QUADS’ was not declared in this scope main.cpp /SDLActivity/jni/src line
42 C/C++ Problem??
I’ve been advised to go SDL 2.0, but I also need OpenGL working and the NDK
C++. But I’m have massive trouble just getting a working base.
Jonny DOn Sat, Apr 27, 2013 at 7:47 AM, Sik the hedgehog < sik.the.hedgehog at gmail.com> wrote:
OpenGL ES is not OpenGL, it’s just a subset made especifically for
very low-end devices (such as mobile). GL_QUADS doesn’t exist in
OpenGL ES, for instance (you need to use two triangles). This is your
issue.
May want to look up more about OpenGL ES first because otherwise you
won’t get anywhere.
2013/4/27, Timodor :
Hey does anyone have a simple base project for eclipse for
SDL_2.0/OPENGL ES
1.1/NDK Base? that complies and works?
I’m getting a huge headache, just trying to get OpenGL enabled using SDL
1.2. Just spend 3 hours trying to get OpenGL going with no success. #include <GLES/gl.h> works but I still get this.
stuff like this:
Description Resource Path Location Type
’GL_QUADS’ was not declared in this scope main.cpp
/SDLActivity/jni/src line
42 C/C++ Problem??
I’ve been advised to go SDL 2.0, but I also need OpenGL working and the
NDK
C++. But I’m have massive trouble just getting a working base.
Function ‘glLoadIdentity’ could not be resolved main.cpp /SDLActivity/jni/src line 34 Semantic Error
Type ‘glMatrixMode’ could not be resolved main.cpp /SDLActivity/jni/src line 36 Semantic Error
Type ‘glMatrixMode’ could not be resolved main.cpp /SDLActivity/jni/src line 33 Semantic Error
Function ‘glOrthof’ could not be resolved main.cpp /SDLActivity/jni/src line 35 Semantic Error
I check the OpenGL header’s and those functions are in there. Something to do with lib’s?
Function ‘glLoadIdentity’ could not be resolved main.cpp
/SDLActivity/jni/src line 34 Semantic Error
Type ‘glMatrixMode’ could not be resolved main.cpp /SDLActivity/jni/src
line 36 Semantic Error
Type ‘glMatrixMode’ could not be resolved main.cpp /SDLActivity/jni/src
line 33 Semantic Error
Function ‘glOrthof’ could not be resolved main.cpp /SDLActivity/jni/src
line 35 Semantic Error
I check the OpenGL header’s and those functions are in there. Something to
do with lib’s?
Well I finally got OpenGL working but’s bizarre. It only complies if you load eclipse from scratch, if you like edit the main.cpp with anything, all of sudden you get those can’t resolve this and that. So it works, but you can edit you code, without having to restart the entire eclipse! I suspect it has something to do with NDK.
Something to do with this build command : C:\adt-bundle-windows-x86_64-20130219\android-ndk-r8d\ndk-build
If it doesn’t make sense, blame Eclipse. That’s what I’ve learned.
Restart Eclipse or your computer and it usually works out. ndk-build can
be used from the command line too, so you can avoid these problems if you
go that route.
Jonny DOn Mon, Apr 29, 2013 at 5:58 AM, Timodor wrote:
**
Well I finally got OpenGL working but’s bizarre. It only complies if you
load eclipse from scratch, if you like edit the main.cpp with anything, all
of sudden you get those can’t resolve this and that. So it works, but you
can edit you code, without having to restart the entire eclipse! I suspect
it has something to do with NDK.
Something to do with this build command :
C:\adt-bundle-windows-x86_64-20130219\android-ndk-r8d\ndk-build