New topic: 

SOLVED: Help with OpenGL and glBitmap

<http://forums.realsoftware.com/viewtopic.php?t=45885>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Ramon          Post subject: SOLVED: Help with OpenGL and 
glBitmapPosted: Tue Nov 13, 2012 11:08 am                         
Joined: Thu Jun 22, 2006 2:16 am
Posts: 205
Location: Barcelona                SOLVED:
I changed the line OpenGL.glRasterPos3f(50,50,0.99) by this one: 
OpenGL.glRasterPos2f(50,50)
=================================================================================

I've created a simple OpenGl code.
There is a window with a RGBsurface named pbGraf.
I pretend to draw a single line and a bitmap 10x10 pixels, all in white.
The line is correctly drawn, but NOTHING about the bitmap.
Does anyone know what I've mised?
Thanks a lot

  OpenGL.glMatrixMode OpenGL.GL_PROJECTION
OpenGL.glLoadIdentity
OpenGL.glOrtho 0, pbGraf.Width, 0,pbGraf.Height,0,1
OpenGL.glMatrixMode OpenGL.GL_MODELVIEW
OpenGL.glLoadIdentity

dim Bloc as new MemoryBlock(100)

OpenGL.glColor3f 1,1,1

OpenGL.glRasterPos3f(50,50,0.99)

dim i,j as Integer
for i = 0 to 9
  for j = 0 to 9
  bloc.UInt8Value(i*10+j)=255
  next j
next i


OpenGL.glBitmap 10,10,0,0,0,0,Bloc

OpenGL.glBegin OpenGL.GL_LINES
OpenGL.glVertex3f 20,20,0
OpenGL.glVertex3f 200,200,0
OpenGL.glEnd


OpenGL.glFlush
pbGraf.Render
      
_________________
Thanks,
Ramon
----------------------------------------------------------------
REAL_Studio2012r1 Enterprise Academic- Licensed
Windows 7 - Registered and Activated  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to