New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
AndyCR
Old
(Last edited by AndyCR; 1st December 2008 at 03:31 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Nov 2008
Default C# software development with OpenGL ES

I'm making a kind of music program mostly for entertainment value, using C# and OpenGL ES. I'm calling into Windows Media Player from my program.

I come from pre-existing 3D engines, so I'm just wondering what the best way to draw a pixel-precise image to the screen in OpenGL is - IE if I have a 64x64 bitmap and place it at 0, 0, I expect it to go from 0, 0 to 63, 63 and that's it. This way I can detect when the image has been touched - thus a bitmap button.

I tried using GDI, but it flickered terribly with the OpenGL rendering, even after placing the draw call after the OpenGL rendering was complete.

Does anyone have any pointers for me? Thanks in advance and thanks to the community for everything.
 
gloom
Old
#2  
Senior Member
Thanks Meter 2
Posts: 126
Join Date: May 2006
Location: Brussels

 
DONATE TO ME
Quote:
Originally Posted by AndyCR View Post
if I have a 64x64 bitmap and place it at 0, 0, I expect it to go from 0, 0 to 64, 64 and that's it.
If it's a 64x64 bitmap and it starts at 0,0, I would rather expect it to go to 63x63 otherwise buffer should represent a bitmap of 65x65, isn't it ?

It's like a byte, can have 256 values from 0 to 255
Device.: Xtreamer Aiki
 
AndyCR
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Nov 2008
You caught me. I'll edit it to reflect that. (I thought it looked wrong, but decided not to change it.)
 
NuShrike
Old
#4  
NuShrike's Avatar
Elite Recognized Developer
Thanks Meter 8
Posts: 1,031
Join Date: Sep 2007
DrawTexOES(). You can look it up against the Khronos OpenGL ES docs, and my KaiserGL SDK in the Kaiser software thread.

Don't mix GDI with OpenGL ES.