Samples TBGL Basic TBGL window

Basic TBGL window

Create a basic TBGL window and clear the screen.

Beginner TBGL Uses: TBGL

Overview

This sample introduces the minimal structure of a TBGL script: loading the module, creating a window and running a basic render loop.

What you’ll learn

  • How to load the TBGL module
  • How to create a simple graphics window
  • How a basic render loop is structured

Code

Uses "TBGL"

' Basic TBGL window sample
PrintL "TBGL sample coming soon"

WaitKey
Try it yourself

Copy the code, paste it into thinAir and run it. Replace the placeholder with a real TBGL window loop when the final sample is ready.