McNopper
Posts: 5
Joined: Mon Feb 25, 2013 10:24 pm
Contact: Website

OpenGL ES examples with source on the Raspberry Pi

Mon Feb 25, 2013 10:32 pm

Hi,

I have ported GLUS, a helper library for OpenGL and OpenGL ES to the Raspberry Pi. Also, I have converted 3 of the 21 OpenGL examples to the Raspberrry Pi. Source code from the helper library, the examples and the assets itself are included.

Screenshots: http://nopper.tv/opengles.html
Download: https://github.com/McNopper/OpenGL_ES
How To: https://github.com/McNopper/OpenGL_ES/wiki

The examples do also run on Windows.

Have fun!

Regards Norbert

PS: If I have time, I will convert more examples.

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL ES examples with source on the Raspberry Pi

Tue Feb 26, 2013 9:41 am

Interesting, I'll try it out this evening.
But it's yet another library :o ..... Eventually there will be so many libs that people will just have to start writing actual applications :lol:
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

McNopper
Posts: 5
Joined: Mon Feb 25, 2013 10:24 pm
Contact: Website

Re: OpenGL ES examples with source on the Raspberry Pi

Tue Feb 26, 2013 10:50 am

Happy coding :D

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL ES examples with source on the Raspberry Pi

Tue Feb 26, 2013 7:04 pm

Failed at first hurdle.... It requires Eclipse to build it !

No its worse than that, it requires Eclipse AND a cross complier environment.....

Can't you get eclipse to write out a set of make files so it can be built natively on the Pi ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

McNopper
Posts: 5
Joined: Mon Feb 25, 2013 10:24 pm
Contact: Website

Re: OpenGL ES examples with source on the Raspberry Pi

Tue Feb 26, 2013 9:09 pm

At this point of time, I am sorry, I can not create the make files.

For the future, I will create a CMake project. Out of that, make files should be easily created for the target.

Cheers Norbert

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: OpenGL ES examples with source on the Raspberry Pi

Tue Feb 26, 2013 9:25 pm

A CMakeLists.txt would be super :-)
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

McNopper
Posts: 5
Joined: Mon Feb 25, 2013 10:24 pm
Contact: Website

Re: OpenGL ES examples with source on the Raspberry Pi

Wed Feb 27, 2013 4:30 pm

For now, the make files are located in the Eclipse build folders of the project. Of course, you would still need to install Eclipse and the cross compiler. But after adaption of these make files, you can build on the target.

Cheers Norbert

McNopper
Posts: 5
Joined: Mon Feb 25, 2013 10:24 pm
Contact: Website

Re: OpenGL ES examples with source on the Raspberry Pi

Mon Mar 04, 2013 6:40 pm

I have added the CMake files. Tested it and now it is possible to build GLUS and the three OpenGL ES 2.0 examples directly on the Pi.

Cheers Norbert

Return to “OpenGLES”