Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 163
Registered: ‎04-16-2009
My Device: Not Specified

OpenGL for Curve 8530

Has anyone managed to get OpenGL to work on a Curve?  The simulator says there is OGL support and all the EGL functions return without errors but I can't get a EGLConfig.  I also tried letting it choose a config and got nothing.

 

BlackBerry_Simulators_5.0.0.395_8530.exe

BlackBerry_Simulators_5.0.0.508_8530-Verizon.exe

 

 

Debug.Println( "EGL Vendor: 	 " + m_EGL.eglQueryString( m_Display, EGL10.EGL_VENDOR ) );
Debug.Println( "EGL Version: 	 " + m_EGL.eglQueryString( m_Display, EGL10.EGL_VERSION ) );
Debug.Println( "EGL Extensions: " + m_EGL.eglQueryString( m_Display, EGL10.EGL_EXTENSIONS ) );

// Determine the number of available configurations
int[] 		numConfig 	= new int[1];
EGLConfig[]	allConfigs	= new EGLConfig[10];

if ( m_EGL.eglGetConfigs( m_Display, allConfigs, allConfigs.length, numConfig ) == false )
	Assert.RIP( "eglGetConfigs: " + getEGLError() );

Debug.Println("There are " + numConfig[0] + " configurations");
for( int index = 0; index < numConfig[0]; ++index )
{
	Debug.Println( "EGL Config: " + index );
	
	dumpConfig( allConfigs[index] );
}

 

 

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: OpenGL for Curve 8530

[ Edited ]

I know you said the simulator says that OpenGL is supported but the actual device does not.

 

The only devices that support OpenGL is: 9520, 9550, and 9650 (the new Bold).

 

EDIT: COrrection: phones with OpenGL support are 9520/9550 (Storm2), 9650 (the new Bold), and 8530.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 163
Registered: ‎04-16-2009
My Device: Not Specified

Re: OpenGL for Curve 8530

I am pretty sure the 8530 supports it.  The ski and bowling game say they are supported.  A few users seem to think it supports OpenGL as they have asked me to port my game Tank Recon 3D. 

 

Wikipedia says it dones and that is almost as good as hearing about it on TV.

 

http://en.wikipedia.org/wiki/OpenGL_ES

 

 

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: OpenGL for Curve 8530

I stand corrected, I can't find a list of which phones support OpenGL so went off what I know/heard. Sorry, in that case I have no clue.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.