RaydiumWikiNi

ApiIntroDefines

PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes ec2-3-94-21-209.compute-1.amazonaws.com

Introduction, Defines


As mentioned above, the file index.c is quite interesting, for several reasons: first, as this file includes all others Raydium's files, you can have an overview of the whole project, just by looking at this.

It can also be used as a "quick help", since all variables are declared here, and not in the corresponding files. I mean, for example, that "raydium_light_intensity...?" will be declared in index.c, not in light.c . There's many reasons for using such "style", but you must only retain that it is simpler for you :)

Ok, after this little disclaimer, we can have a look to the first part of our file.

After usual #include (nothing interesting here), we find some #defines.

1. generic limits


The first #define block determine limits of your application, and here you are the actual values for basic defines:
#define RAYDIUM_MAX_VERTICES 500000
#define RAYDIUM_MAX_TEXTURES 256
#define RAYDIUM_MAX_LIGHTS 8
#define RAYDIUM_MAX_NAME_LEN 255
#define RAYDIUM_MAX_OBJECTS 1024 
 



2. options and parameters


This is the next part of our #define section, I will not explain these constants here, but in respective sections, so you'll have just you to remember they're declared here.



Return to RaydiumApiReference index.