Axle 0.1.0
A simple, lightweight C++ game framework built on top of Raylib.
 
Loading...
Searching...
No Matches
Axle::Examples Namespace Reference

The Example namespace contains ports of the examples from the Raylib library. More...

Functions

void basicScreenManager ()
 Basic screen manager example.
 
void basicWindow ()
 Basic window example.
 
void customExample ()
 Custom example.
 

Detailed Description

The Example namespace contains ports of the examples from the Raylib library.

To run an example, simply call the corresponding function from this namespace :

#include <axle.h>
int main()
{
return 0;
}
void basicWindow()
Basic window example.
Definition basicWindow.cpp:5
Note
The original examples can be found at https://www.raylib.com/examples.html

Function Documentation

◆ basicScreenManager()

void Axle::Examples::basicScreenManager ( )

Basic screen manager example.

This example illustrates a very simple screen manager based on a states machines

◆ basicWindow()

void Axle::Examples::basicWindow ( )

Basic window example.

This example creates a basic window with a title and a size.

A basic game loop is also implemented, which will simply keep the window open until the user closes it, clear the background to a color, and then draw some text.

◆ customExample()

void Axle::Examples::customExample ( )

Custom example.

This example is a custom example that you can use to test your own code.