|
Post by held12345 on Mar 13, 2023 4:13:40 GMT -5
hello, does opengl work with liberty basic? and demo ?
thanks greeting
|
|
|
Post by Rod on Mar 13, 2023 5:00:26 GMT -5
|
|
|
Post by held12345 on Mar 13, 2023 6:57:05 GMT -5
Thanks for your help.
how can you please make the opengl screen smaller? 300x300 for example and then use the graphics from Liverty Basic in the rest of the screen?
Thanks greeting
this is from profan and then in the liberty basic ?: ----------------------------------- bild_auto& = create("hNewPic", 128,128,rgb(255,255,0))
auto1&=oGL("LoadTextureBMP","auto.bmp",1) ' 128x128 array&=CreateDIB(128,128) groesse&=128*128*4 dim ogl_rgb#,groesse& OGL("Clear") OGL("texture",auto1&,1) proc drawglscene OGL("quad",0.5,0.5) OGL("origin",0,0,-1.2) OGL("rotate",0,0,winkel!) OGL("show") ogl("glReadPixels",0,0,128,128,&GL_BGR, &GL_UNSIGNED_BYTE,ogl_rgb#) setDIBits(%hdc,bild_auto&,0,128,ogl_rgb#,array&,0) endproc --------------------------------
|
|
|
Post by Rod on Mar 13, 2023 8:31:25 GMT -5
You are going to have to work the tutorials. Its not as bad as you think. For example GLwidth and GLheight are two variables set in the list of parameters that ship with the examples.
If you are having trouble downloading the example files and .dlls from the link you need to click on the link to highlight it but then click copy and paste to the searchbar in your browser. Only then will windows fetch the download.
Rob basically shows how to set a OpenGL viewing window inside a Liberty window so combining the two graphic vies should be very doable. But as I say you need to work the tutorial because few of us have messed around with openGL. Much to Rob's disappointment.
|
|
|
Post by held12345 on Mar 13, 2023 16:42:02 GMT -5
hello thanks for help with opengl.
greeting
|
|