Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

GLBasic Programming/BASIC/Image Import

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

To import a picture, place it in the program folder and just copy and paste it in the window: CLEARSCREEN RGB(255, 0, 0) //The color of the background will be red LOADSPRITE "../GLBasic_Logo.png", 0 //First the name of the file, then the ID PRINT "Look at this:", 100, 100 //Print some text on x100, y100 DRAWSPRITE 0, 100, 200 //Draw the sprite with ID 0 on x100, y200 SHOWSCREEN //Show the screen KEYWAIT //Wait for a key to be pressed END //End the program It gives: 500px GLBasic Programming BASIC/Subroutines and Functions OpenGL/First Program