patch is a weird program
This commit is contained in:
parent
df71321d56
commit
d52d83a55e
1 changed files with 16 additions and 16 deletions
|
@ -1,12 +1,12 @@
|
||||||
--- raylib.h 2021-06-12 21:09:32.140180958 +0100
|
--- not_raylib 2021-06-12 21:09:32.140180958 +0100
|
||||||
+++ raylib_modified.h 2021-06-12 21:22:50.683235186 +0100
|
+++ raylib_modified.h 2021-06-12 21:22:50.683235186 +0100
|
||||||
@@ -76,106 +76,7 @@
|
@@ -76,106 +76,7 @@
|
||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
-#ifndef RAYLIB_H
|
-#ifndef RAYLIB_H
|
||||||
-#define RAYLIB_H
|
-#define RAYLIB_H
|
||||||
|
|
||||||
-#include <stdarg.h> // Required for: va_list - Only used by TraceLogCallback
|
-#include <stdarg.h> // Required for: va_list - Only used by TraceLogCallback
|
||||||
-
|
-
|
||||||
-#if defined(_WIN32)
|
-#if defined(_WIN32)
|
||||||
|
@ -104,41 +104,41 @@
|
||||||
-#elif !defined(__cplusplus) && !defined(bool)
|
-#elif !defined(__cplusplus) && !defined(bool)
|
||||||
- typedef enum { false, true } bool;
|
- typedef enum { false, true } bool;
|
||||||
-#endif
|
-#endif
|
||||||
|
|
||||||
// Vector2 type
|
// Vector2 type
|
||||||
typedef struct Vector2 {
|
typedef struct Vector2 {
|
||||||
@@ -290,7 +191,6 @@
|
@@ -290,7 +191,6 @@
|
||||||
CharInfo *chars; // Characters info data
|
CharInfo *chars; // Characters info data
|
||||||
} Font;
|
} Font;
|
||||||
|
|
||||||
-#define SpriteFont Font // SpriteFont type fallback, defaults to Font
|
-#define SpriteFont Font // SpriteFont type fallback, defaults to Font
|
||||||
|
|
||||||
// Camera type, defines a camera position/orientation in 3d space
|
// Camera type, defines a camera position/orientation in 3d space
|
||||||
typedef struct Camera3D {
|
typedef struct Camera3D {
|
||||||
@@ -723,8 +623,8 @@
|
@@ -723,8 +623,8 @@
|
||||||
MATERIAL_MAP_PREFILTER // NOTE: Uses GL_TEXTURE_CUBE_MAP
|
MATERIAL_MAP_PREFILTER // NOTE: Uses GL_TEXTURE_CUBE_MAP
|
||||||
} MaterialMapIndex;
|
} MaterialMapIndex;
|
||||||
|
|
||||||
-#define MATERIAL_MAP_DIFFUSE MATERIAL_MAP_ALBEDO
|
-#define MATERIAL_MAP_DIFFUSE MATERIAL_MAP_ALBEDO
|
||||||
-#define MATERIAL_MAP_SPECULAR MATERIAL_MAP_METALNESS
|
-#define MATERIAL_MAP_SPECULAR MATERIAL_MAP_METALNESS
|
||||||
+#define MATERIAL_MAP_DIFFUSE 0
|
+#define MATERIAL_MAP_DIFFUSE 0
|
||||||
+#define MATERIAL_MAP_SPECULAR 1
|
+#define MATERIAL_MAP_SPECULAR 1
|
||||||
|
|
||||||
// Shader location index
|
// Shader location index
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -756,8 +656,8 @@
|
@@ -756,8 +656,8 @@
|
||||||
SHADER_LOC_MAP_BRDF
|
SHADER_LOC_MAP_BRDF
|
||||||
} ShaderLocationIndex;
|
} ShaderLocationIndex;
|
||||||
|
|
||||||
-#define SHADER_LOC_MAP_DIFFUSE SHADER_LOC_MAP_ALBEDO
|
-#define SHADER_LOC_MAP_DIFFUSE SHADER_LOC_MAP_ALBEDO
|
||||||
-#define SHADER_LOC_MAP_SPECULAR SHADER_LOC_MAP_METALNESS
|
-#define SHADER_LOC_MAP_SPECULAR SHADER_LOC_MAP_METALNESS
|
||||||
+#define SHADER_LOC_MAP_DIFFUSE 15
|
+#define SHADER_LOC_MAP_DIFFUSE 15
|
||||||
+#define SHADER_LOC_MAP_SPECULAR 16
|
+#define SHADER_LOC_MAP_SPECULAR 16
|
||||||
|
|
||||||
// Shader uniform data type
|
// Shader uniform data type
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -885,16 +785,7 @@
|
@@ -885,16 +785,7 @@
|
||||||
|
|
||||||
// Callbacks to hook some internal functions
|
// Callbacks to hook some internal functions
|
||||||
// WARNING: This callbacks are intended for advance users
|
// WARNING: This callbacks are intended for advance users
|
||||||
-typedef void (*TraceLogCallback)(int logLevel, const char *text, va_list args); // Logging: Redirect trace log messages
|
-typedef void (*TraceLogCallback)(int logLevel, const char *text, va_list args); // Logging: Redirect trace log messages
|
||||||
|
@ -147,17 +147,17 @@
|
||||||
-typedef char *(*LoadFileTextCallback)(const char* fileName); // FileIO: Load text data
|
-typedef char *(*LoadFileTextCallback)(const char* fileName); // FileIO: Load text data
|
||||||
-typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileIO: Save text data
|
-typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileIO: Save text data
|
||||||
-
|
-
|
||||||
|
|
||||||
-#if defined(__cplusplus)
|
-#if defined(__cplusplus)
|
||||||
-extern "C" { // Prevents name mangling of functions
|
-extern "C" { // Prevents name mangling of functions
|
||||||
-#endif
|
-#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// Global Variables Definition
|
// Global Variables Definition
|
||||||
@@ -1015,13 +906,7 @@
|
@@ -1015,13 +906,7 @@
|
||||||
RLAPI void *MemRealloc(void *ptr, int size); // Internal memory reallocator
|
RLAPI void *MemRealloc(void *ptr, int size); // Internal memory reallocator
|
||||||
RLAPI void MemFree(void *ptr); // Internal memory free
|
RLAPI void MemFree(void *ptr); // Internal memory free
|
||||||
|
|
||||||
-// Set custom callbacks
|
-// Set custom callbacks
|
||||||
-// WARNING: Callbacks setup is intended for advance users
|
-// WARNING: Callbacks setup is intended for advance users
|
||||||
-RLAPI void SetTraceLogCallback(TraceLogCallback callback); // Set custom trace log
|
-RLAPI void SetTraceLogCallback(TraceLogCallback callback); // Set custom trace log
|
||||||
|
@ -166,13 +166,13 @@
|
||||||
-RLAPI void SetLoadFileTextCallback(LoadFileTextCallback callback); // Set custom file text data loader
|
-RLAPI void SetLoadFileTextCallback(LoadFileTextCallback callback); // Set custom file text data loader
|
||||||
-RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom file text data saver
|
-RLAPI void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom file text data saver
|
||||||
+
|
+
|
||||||
|
|
||||||
// Files management functions
|
// Files management functions
|
||||||
RLAPI unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read)
|
RLAPI unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read)
|
||||||
@@ -1512,8 +1397,3 @@
|
@@ -1512,8 +1397,3 @@
|
||||||
RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level)
|
RLAPI void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for audio stream (1.0 is base level)
|
||||||
RLAPI void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams
|
RLAPI void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams
|
||||||
|
|
||||||
-#if defined(__cplusplus)
|
-#if defined(__cplusplus)
|
||||||
-}
|
-}
|
||||||
-#endif
|
-#endif
|
||||||
|
|
Reference in a new issue