IFCARO 3D

Introduction

Ifcaro 3d is a kind of layer that simplifies programming using functions similar to the functions of Blitz3d. Ifcaro 3d is built over Unnoficial Llibplanar so it has the same limitations.

2d functions

Graphics

Graphics(mode, argv[0])

Starts graphic mode. This function must always be used to start the application. In the second argument must be to pass the file path to detect the relative path.

GraphicsMode()

Returns graphics mode.

GraphicsIsPal()

Returns true if the system is pal.

GraphicsIsNtsc()

Returns true if the system is ntsc.

GraphicsWidth()

Returns screen width.

GraphicsHeight()

Returns screen height.

Flip():

This function draw de screen.

Image

LoadImage(file, createtexture=0)

Load an image from an iif file. if "createtexture" is 0 it returns image id, if is 1 return texture id

LoadImageC(file, size, type, createtexture=0)

Load an image from memory. if "createtexture" is 0 it returns image id, if is 1 return texture id

DrawImage(image, x, y, width, height)

Draws the image "imagen" in the position "x" & "y" with the size "ancho" & "alto"

Sound

LoadMusic(file)

Load an MP3 file.

LoadMusicC(pointer, size)

Load an MP3 from memory.

PlayMusic(id, repeat)

Play the MP3 file loaded with LoadMusic()

PauseMusic()

Pauses the playing MP3 file.

StopMusic()

Stops the playing MP3 file.

MusicPlaying()

Return 1 if the MP3 is playing.

LoadSound(file)

Load a VAG file.

PlaySound(id)

Play a VAG file.

Video

En construccion tambien

3d functions

Graphics

RenderWorld()

Draw 3d objects.

Entity: Creation

CreateCamera()

Creates a camera.

CreateLight()

Creates an light.

FreeEntity(entity)

Frees the memory of one entity.

Entity: Control

PositionEntity(entity, x, y, z)

Translate an entity in the coordinates x, y, z.

MoveEntity(entity, x, y, z)

Moves relatively an entity in the directions x, y, z.

RotateEntity(entity, x, y z)

Rotate an entity in the directions x, y, z.

TurnEntity(entity, x, y z)

Turn relatively an entity in the directions x, y, z.

EntityColor(entity,r,g,b)

Paint an object with the r, g, b values.

EntityAlpha(entity, alpha)

Sets the transparency of an object 3d.

Entidad: State (THESE FEATURES ARE NOT PROPERLY IMPLEMENTED)

EntityX(entity)

Returns the position in the x-axis of a 3D object.

EntityY(entity)

Returns the position in the y-axis of a 3D object.

EntityZ(entity)

Returns the position in the z-axis of a 3D object.

EntityPitch(entity)

Returns rotation in the x-axis of a 3D object.

EntityYaw(entity)

Returns rotation in the y-axis of a 3D object.

EntityRoll(entity)

Returns rotation in the z-axis of a 3D object.