Arcade architecture
main.cpp File Reference

Entry point for the libGra library. More...

#include <iostream>
#include <unistd.h>
#include "arcade_snake.hpp"
#include "LoaderType.hpp"
Include dependency graph for main.cpp:

Functions

IGameModulegetClass (void)
 Factory function to create an instance of libGra. More...
 
Loader::ModuleType_t getModuleType (void)
 
 __attribute__ ((constructor)) void const ruct()
 
 __attribute__ ((destructor)) void deconstruct()
 

Detailed Description

Entry point for the libGra library.

This file contains the implementation of the getClass function which returns an instance of the libGra class.

Author
roussierenoa
Date
3/17/25

Function Documentation

◆ getClass()

IGameModule * getClass ( void  )

Factory function to create an instance of libGra.

This function is used to create and return a new instance of the libGra class. It is intended to be used as an entry point for dynamic loading of the library.

Returns
IDisplayModule* Pointer to the newly created libGra instance.