Skip to content

roneyrogerio/raycast-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is not a library for use in production, its purpose is entirely didactic!

An example usage program has been built and is available at # cub3D

The test can be done with the following commands:

git clone https://github.com/roneyrogerio/cub3D.git
cd cub3D && make
./cub3D c3d.cub

test

Functions

Function Description
ngn_init Starts the engine with a config file and returns a void pointer that can be used with ngn_camera, ngn_mini_map, ngn_get_window_size, ngn_set_window_size, ngn_set_walk, ngn_set_turn, ngn_movement_update, ngn_destroy.
ngn_camera Draw the 3D image using a function pointer passed as an argument.
ngn_mini_map Draw the mini map using a function pointer passed as an argument.
ngn_get_window_size Get width and height.
ngn_set_window_size Set the width and height.
ngn_movement_update Updates the player's position on the map when any movement is set with ngn_set_walk or ngn_set_turn.
ngn_set_walk Sets the player to move forward or backward.
ngn_set_turn Sets the player to rotate right or left.
ngn_strerror When a function returns an error the error code is placed in the variable g_ngnerr, this function gets the error message string.
ngn_destroy Free the allocated memory with ngn_init.

About

Pseudo 3D raycasting game engine library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published