Results 1 to 3 of 3

Thread: ScriptBasic & TBGL

  1. #1

    NOT(ScriptBasic & TBGL)

    *** deleted ***
    Last edited by John Spikowski; 18-09-2013 at 00:41.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  2. #2
    Member
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    406
    Rep Power
    56
    Hi,

    And here is the OxygenBasic Version.
    include "sw.inc"
    include "swgl.inc"
    
    
    hwnd = Window 640,450, SW_WINDOWED
    InitGl (hwnd)
    
    
    single a
    ClsColor 0, 0, 0, 255
    
    
    while (1)
      
      ClearScreen
      glLoadIdentity
      glRotatef a, 1.0, 1.0, 1.0
      glBegin GL_TRIANGLES
        glColor3ub 255,0,0 : glVertex3f -0.5, -0.5, 0.0
        glColor3ub 0,255,0 : glVertex3f  0.5, -0.5, 0.0     
        glColor3ub 0,0,255 : glVertex3f  0.0,  0.5, 0.0     
      glEnd  
      
      DoEvents
      SwapBuffer
      SetFps (60)
      a +=1
      iF a>360 then a=0
      iF Key(27) then Exit While
       
    wend
    QuitGl
    Quit
    
    Attached Files Attached Files

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi John,

    thanks for your interest, but I must disappoint you. TBGL functions are not classic functions - they use thinCore procedures for parsing to retrieve parameters. So TBGL as is will not be usable from other language without thinCore.

    At the moment, my time resources are just enough to support TBGL in one language. I do not plan to make money on it so I am happy with the current approach.


    Petr

    P.S. The power of TBGL is not in the simple use as in the example posted, but in the built in extras such as model format handling, garbage collection, scene system and internal adaptivity mechanism, which scales the rendering code for different generations of GPUs. And state safe programming support of course.
    Last edited by Petr Schreiber; 24-08-2013 at 22:29.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. ScriptBasic JIT
    By John Spikowski in forum Scripting
    Replies: 0
    Last Post: 29-05-2013, 07:53
  2. ScriptBasic JAPI
    By John Spikowski in forum Scripting
    Replies: 6
    Last Post: 29-05-2013, 01:56
  3. ScriptBasic API Example
    By John Spikowski in forum Scripting
    Replies: 0
    Last Post: 28-12-2012, 17:01
  4. ScriptBasic Android
    By John Spikowski in forum Scripting
    Replies: 30
    Last Post: 14-05-2012, 11:55
  5. ScriptBasic Embedding
    By John Spikowski in forum Scripting
    Replies: 5
    Last Post: 23-10-2011, 17:10

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •