NEWS ARTICLES


    What's News in the PlayBasic world ? - Find out here.



 G2D - 2D OpenGL library for PlayBasic V1.64P

By: Kevin Picone Added: June 24th, 2014

Category: All,G2D,OpenGL,LIbraries





G2D - 2D OpenGL library for PlayBasic V1.64P PROTOTYPE

Release Date: 24th, June, 2014

PlayBasic version: For use with PlayBasic V1.64P (Beta Edition 42 or higher).




What is this?:


G2D is an alternative rendering library that uses the OpenGL API rather than the DirectX / Software interface that PlayBasic normally uses. The command set is very minimal at this point, in fact only about a dozen primate operations are supported at all. Those that are, try to be functionality identical to the internal PlayBasic equivalent commands, while only drawing to the OpenGL screen.

G2D currently only works with PlayBasic windowed modes, the library attaches the GL viewport to the PlayBasic window. When we do this, both the DX and GL screens are being drawn to the same window. You can get rid of the DX screen using the ScreenLayout command. The command gives you a rect (X1,y1,x2,y2) of where the DX screen should be drawn within the window. To get rid of it, just position it outside of the window.


     This library was written in PlayBasic V1.64P and converted to a DLL with PB2DLL


     You can download the first alphas through the forums.






 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]