Results 1 to 10 of 25

Thread: my current GUI-project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    Hi Rene,

    okay, I will check. In the meantime, can you verify that this script gives you graphical output in the attachement?
    Uses "TBGL" 
    
    Function TBMain()
      Local hWnd      As DWord
      Local FrameRate As Double
      
      ' -- Create and show window
      hWnd = TBGL_CreateWindowEx("Testing clipping - press ESC to quit", 640, 480, 32, %TBGL_WS_WINDOWED Or %TBGL_WS_CLOSEBOX) 
      TBGL_ShowWindow 
    
      ' -- Resets status of all keys 
      TBGL_ResetKeyState()            
      
      Dim hFont As DWord = TBGL_FontHandle("Courier New", 64) 
      TBGL_BuildFont( hFont ) 
    
      ' -- Main loop
      While TBGL_IsWindow(hWnd) 
        FrameRate = TBGL_GetFrameRate
    
        TBGL_RenderMatrix2D
        TBGL_ClearFrame 
    
          TBGL_PrintFont "ThinBASIC", -175,230
          TBGL_PrintFont "ThinBASIC", 460,230
    
        TBGL_DrawFrame 
    
        ' -- ESCAPE key to exit application
        If TBGL_GetWindowKeyState(hWnd, %VK_ESCAPE) Then Exit While 
    
      Wend 
    
      TBGL_DestroyWindow
    End Function
    

    Petr
    Attached Images Attached Images
    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. Current module development possibilities?
    By Michael Hartlef in forum thinBasic SDK
    Replies: 0
    Last Post: 17-09-2013, 20:12
  2. current thinAir very unstable?
    By Michael Hartlef in forum thinAir General
    Replies: 5
    Last Post: 09-02-2008, 07:35
  3. Current TAB player seems not working here
    By ErosOlmi in forum T.A.B. (ThinBasic Adventure Builder)
    Replies: 10
    Last Post: 21-04-2007, 12:41
  4. thinBundle: current status
    By ErosOlmi in forum thinBundle
    Replies: 0
    Last Post: 02-04-2007, 15:15
  5. Current development
    By ErosOlmi in forum thinBasic General
    Replies: 1
    Last Post: 31-08-2006, 22:33

Members who have read this thread: 1

Posting Permissions

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