westernhiller
Posts: 7
Joined: Mon Jul 27, 2015 12:44 am

opengl es gets no display

Thu Dec 10, 2015 10:48 am

Dear all,

I've been studying programming with opengl ES on RPI. I followed online tutorials at https://jan.newmarch.name/LinuxSound/Di ... yPiOpenGL/. And trianble.c and image.c compiled without problem. However, when I ran them via either SSH or via VNC client, I did see some text information about frame rate on console, just didn't see a window show up displaying the triangle or the image. BTW, I'm running Wheezy on RPI 2 model B.

Did I miss anything here?

Many thanks,

Hiller

tvjon
Posts: 769
Joined: Mon Jan 07, 2013 9:11 am

Re: opengl es gets no display

Thu Dec 10, 2015 12:47 pm

¨Did I miss anything here?¨

Yes, gles output goes only to displays attached directly to RPi.

westernhiller
Posts: 7
Joined: Mon Jul 27, 2015 12:44 am

Re: opengl es gets no display

Thu Dec 10, 2015 1:07 pm

I had a test connecting HDMI display to RPI. It did work. However, my target is a spi 3.5' LCD which uses some of GPIO pins of RPI. Somehow it doesn't work.

tvjon
Posts: 769
Joined: Mon Jan 07, 2013 9:11 am

Re: opengl es gets no display

Thu Dec 10, 2015 1:16 pm

HDMI

Official LCD display

viewforum.php?f=108

DPI using manyGPio pins, but alternative function, via

viewtopic.php?f=91&t=94424

as they are all GPU driven, unlike SPI, I2C, etc..

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: opengl es gets no display

Thu Dec 10, 2015 1:17 pm

• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

westernhiller
Posts: 7
Joined: Mon Jul 27, 2015 12:44 am

Re: opengl es gets no display

Thu Dec 10, 2015 1:37 pm

Many thanks, ghans! I'll have a try.

westernhiller
Posts: 7
Joined: Mon Jul 27, 2015 12:44 am

Re: opengl es gets no display

Thu Dec 10, 2015 3:10 pm

thanks ghans! with raspi2fb it works fine on spi LCD!

Return to “OpenGLES”