Go to advanced search

by Amicadi
Wed Sep 16, 2015 6:27 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

Quake 3 arena is doing fine with SDL 1.2 at Raspberry pi. I guess that would be another option, since Irrlicht can also be configured with _IRR_COMPILE_WITH_SDL_DEVICE_ instead of _IRR_COMPILE_WITH_X11_DEVICE_. The problem is that Irrlicht is also missing some stuff with this configuration: _IRR_COM...
by Amicadi
Wed Sep 16, 2015 5:28 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

So, I made changes to previous versions of CIrrDeviceLinux.cpp and CEGLManager.cpp (which can be found in the new attached at zip file) Unfortunatelly I get a segfault at eglCreateWindowSurface: INFO[Main]: Irrlicht: Creating X window... INFO[Main]: Irrlicht: Using plain X visual VERBOSE[Main]: Irrl...
by Amicadi
Wed Sep 16, 2015 2:57 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

Added bcm_host_init(); at CEGLManager.cpp #elif defined(_IRR_COMPILE_WITH_X11_DEVICE_) bcm_host_init(); EglWindow = (NativeWindowType)Data.OpenGLLinux.X11Window; Display *x_display = (Display*)Data.OpenGLLinux.X11Display; and added -lbcm_host flag for linking libIrrlicht.a I got exactly same output ...
by Amicadi
Wed Sep 16, 2015 1:53 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

Yes, I added: GLint val=0; char xx[255]; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &val); sprintf(xx, "\nCOGLES2ExtensionHandler::initExtensions - GL_MAX_TEXTURE_SIZE = %i \n", val); printf(xx); Previous and after OpenGL initialization at /opt/vc/src/hello_pi/hello_triangle/triangle.c Output was like this:...
by Amicadi
Wed Sep 16, 2015 1:03 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

BTW, I don't think any of those extensions support is mandatory for raspberry pi client since android client is working properly built without the mesa libs... includes at android are like you pointed out. So, I think that your lead is correct ;) Those extension are queried for setting up some stuff...
by Amicadi
Wed Sep 16, 2015 12:55 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

No, core::stringc extensions = glGetString(GL_EXTENSIONS); returns just empty string. Also for this calls: GLint val=0; glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &val); glGetIntegerv(GL_MAX_TEXTURE_SIZE, &val); glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine); glGetFloatv(GL_ALIASED_POINT_SI...
by Amicadi
Wed Sep 16, 2015 12:20 pm
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

Yes, that did it. Also at COGLESTexture.h was needed to change the gl.h location: #if defined(_IRR_COMPILE_WITH_IPHONE_DEVICE_) #include <OpenGLES/ES1/gl.h> #include <OpenGLES/ES1/glext.h> #elif defined(_IRR_ANDROID_PLATFORM_) #include <GLES/gl.h> #include <GLES/glext.h> #else //#include <GLES/egl.h...
by Amicadi
Wed Sep 16, 2015 10:54 am
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

You are right, those include files are in the place (at /opt/vc/include/), but then... why compilation fails like this? g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -O0 -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -...
by Amicadi
Wed Sep 16, 2015 10:19 am
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Re: Minetest with OpenGL ES

Removing libegl1-mesa-dev, libgles2-mesa-dev and libgl1-mesa-swx11-dev will result in Irrlicht compilation error: In file included from COGLESExtensionHandler.h:14:0, from COGLESExtensionHandler.cpp:10: CEGLManager.h:15:22: fatal error: GLES/egl.h: No such file or directory compilation terminated. I...
by Amicadi
Wed Sep 16, 2015 3:28 am
Forum: OpenGLES
Topic: Minetest with OpenGL ES
Replies: 19
Views: 10276

Minetest with OpenGL ES

Since Minetest ( http://www.minetest.net/ ) works quite badly in raspberry pi (1 and 2) because it is using OpenGL instead of OpenGL ES I am trying to get Minetest running with OpenGL ES 2 in my raspberry pi2. In order to do this, i installed these packages in the system: libegl1-mesa-dev - free imp...

Go to advanced search