GLBasic 编程/BASIC/图像导入
显示
要导入图片,将图片放到程序文件夹中,然后直接复制并粘贴到窗口中
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