Code: Select all

`#include "my_irr_wrapper.bi"`

IrrStart( IRR_EDT_OPENGL, 400, 200, IRR_BITS_PER_PIXEL_32,_

IRR_WINDOWED, IRR_NO_SHADOWS, IRR_IGNORE_EVENTS,_

IRR_VERTICAL_SYNC_ON )

IrrSetWindowCaption( "Example 01: Hello World" )

IrrAddStaticText( "Hello World", 4,0,200,16, IRR_GUI_NO_BORDER, IRR_GUI_NO_WRAP )

WHILE IrrRunning

IrrBeginScene( 255,255,255 )

IrrDrawGUI

IrrEndScene

WEND

IrrStop

Code: Select all

`#include "my_irr_wrapper.bi"`

IrrStart( IRR_EDT_OPENGL, 200, 400, IRR_BITS_PER_PIXEL_32, _

IRR_WINDOWED, IRR_SHADOWS, IRR_IGNORE_EVENTS )

DIM as irr_mesh MD2Mesh = IrrGetMesh( "./objects/axe.obj" )

DIM as irr_texture MeshTexture = IrrGetTexture( "./objects/axe.jpg" )

DIM as irr_node SceneNode = IrrAddMeshToScene( MD2Mesh )

IrrSetNodeMaterialTexture( SceneNode, MeshTexture, 0 )

IrrSetNodeMaterialFlag( SceneNode, IRR_EMF_LIGHTING, IRR_OFF )

IrrAddCamera( 50,0,0, 0,20,0 )

WHILE IrrRunning

IrrBeginScene( 240, 255, 255 )

IrrDrawScene

IrrEndScene

WEND

IrrStop

Code: Select all

`#include "my_irr_wrapper.bi"`

IrrStart( IRR_EDT_OPENGL, 800, 600, IRR_BITS_PER_PIXEL_32, _

IRR_WINDOWED, IRR_NO_SHADOWS, IRR_IGNORE_EVENTS )

DIM as irr_terrain Terrain = IrrAddTerrain( "./map0/media/terrain-heightmap2.jpg" )

DIM as irr_node TerrainNode = Terrain

IrrSetNodeScale( TerrainNode, 40.0, 4.4, 40.0 )

DIM as irr_texture TerrainTexture0 = IrrGetTexture( "./map0/media/terrain-heightmap2.jpg" )

IrrSetNodeMaterialTexture( TerrainNode, TerrainTexture0, 0 )

IrrSetNodeMaterialFlag( TerrainNode, IRR_EMF_LIGHTING, IRR_OFF )

DIM as irr_camera Camera = IrrAddFPSCamera( IRR_NO_OBJECT, 100.0f, 0.1f )

IrrHideMouse

WHILE IrrRunning

IrrBeginScene( 240, 255, 255 )

IrrDrawScene

IrrEndScene

WEND

IrrStop