diff options
| author | Tyler Jessilynn Bezera <tylerjessilynn@gmail.com> | 2019-10-21 08:38:23 -0700 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-10-21 17:38:23 +0200 |
| commit | 3f7fa6d6e7236caa7defa7efe3b54832ac21bb6e (patch) | |
| tree | 6b21ddbedb49e8f3adb1b73ecc802347070dd19f /src/raylib.h | |
| parent | ab52f984804e1ec77fbddd6d1258a1c535dea0cb (diff) | |
| download | raylib-3f7fa6d6e7236caa7defa7efe3b54832ac21bb6e.tar.gz raylib-3f7fa6d6e7236caa7defa7efe3b54832ac21bb6e.zip | |
Add multi texture support for materials in GLTF format (#979)
* Initial commit of addition for GLTF materials.. should support loading more than just albedo map.
* Clean up
* fixed seg faults and leaks
* temp don't overwrite defuse colour when rendering
* undid something dumb!
* correctly mixed diffuse map color when rendering to preserve not overwrite it
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index 11587e2e..80786b69 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -106,7 +106,7 @@ #ifndef RL_FREE #define RL_FREE(p) free(p) #endif -
+ // NOTE: MSC C++ compiler does not support compound literals (C99 feature) // Plain structures in C++ (without constructors) can be initialized from { } initializers. #if defined(__cplusplus) @@ -336,6 +336,7 @@ typedef struct MaterialMap { // Material type (generic) typedef struct Material { + char* name; // Material name Shader shader; // Material shader MaterialMap *maps; // Material maps array (MAX_MATERIAL_MAPS) float *params; // Material generic parameters (if required) @@ -1406,7 +1407,7 @@ RLAPI bool IsAudioStreamPlaying(AudioStream stream); // Check i RLAPI void StopAudioStream(AudioStream stream); // Stop audio stream RLAPI void SetAudioStreamVolume(AudioStream stream, float volume); // Set volume for audio stream (1.0 is max level) RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level) -
+ //------------------------------------------------------------------------------------ // Network (Module: network) //------------------------------------------------------------------------------------ |
