Updated raylib enumerated types (markdown)

Ray
2021-03-20 19:41:50 +01:00
parent 2c7a3c3106
commit ed49fffbcf

@ -8,12 +8,12 @@ Here it is the list with the provided enums and the functions intended to use th
SetConfigFlags(unsigned int flags); SetConfigFlags(unsigned int flags);
SetWindowState(unsigned int flags); SetWindowState(unsigned int flags);
``` ```
[`enum TraceLogLevel](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L498) [`enum TraceLogLevel`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L498)
```c ```c
TraceLog(int logLevel, const char *text, ...); TraceLog(int logLevel, const char *text, ...);
SetTraceLogLevel(int logLevel); SetTraceLogLevel(int logLevel);
``` ```
[`enum KeyboardKey](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L512) [`enum KeyboardKey`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L512)
```c ```c
IsKeyPressed(int key); IsKeyPressed(int key);
IsKeyDown(int key); IsKeyDown(int key);
@ -22,18 +22,18 @@ Here it is the list with the provided enums and the functions intended to use th
SetExitKey(int key); SetExitKey(int key);
//GetKeyPressed(void); //GetKeyPressed(void);
``` ```
[`enum MouseButton](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L632) [`enum MouseButton`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L632)
```c ```c
IsMouseButtonPressed(int button); IsMouseButtonPressed(int button);
IsMouseButtonDown(int button); IsMouseButtonDown(int button);
IsMouseButtonReleased(int button); IsMouseButtonReleased(int button);
IsMouseButtonUp(int button); IsMouseButtonUp(int button);
``` ```
[`enum MouseCursor](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L639) [`enum MouseCursor`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L639)
```c ```c
SetMouseCursor(int cursor); SetMouseCursor(int cursor);
``` ```
[`enum GamepadButton](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L654) [`enum GamepadButton`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L654)
```c ```c
IsGamepadButtonPressed(int gamepad, int button); IsGamepadButtonPressed(int gamepad, int button);
IsGamepadButtonDown(int gamepad, int button); IsGamepadButtonDown(int gamepad, int button);
@ -41,64 +41,65 @@ Here it is the list with the provided enums and the functions intended to use th
IsGamepadButtonUp(int gamepad, int button); IsGamepadButtonUp(int gamepad, int button);
//GetGamepadButtonPressed(void); //GetGamepadButtonPressed(void);
``` ```
[`enum GamepadAxis](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L690) [`enum GamepadAxis`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L690)
```c ```c
GetGamepadAxisMovement(int gamepad, int axis); GetGamepadAxisMovement(int gamepad, int axis);
``` ```
[`enum ShaderLocationIndex](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L705) [`enum ShaderLocationIndex`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L705)
[`enum ShaderUniformDataType](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L737) [`enum ShaderUniformDataType`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L737)
```c ```c
SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType); SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType);
SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count); SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count);
SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat); SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat);
SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture);
``` ```
[`enum MaterialMapIndex](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L750) [`enum MaterialMapIndex`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L750)
```c ```c
struct Material.maps[index] struct Material.maps[index]
``` ```
[`enum PixelFormat](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L769) [`enum PixelFormat`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L769)
```c ```c
struct Image.format struct Image.format
struct Texture.format struct Texture.format
LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize); LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize);
ImageFormat(Image *image, int newFormat); ImageFormat(Image *image, int newFormat);
``` ```
[`enum TextureFilter](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L796) [`enum TextureFilter`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L796)
```c ```c
SetTextureFilter(Texture2D texture, int filter); SetTextureFilter(Texture2D texture, int filter);
``` ```
[`enum TextureWrap](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L806) [`enum TextureWrap`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L806)
```c ```c
SetTextureWrap(Texture2D texture, int wrap); SetTextureWrap(Texture2D texture, int wrap);
``` ```
[`enum CubemapLayout](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L814) [`enum CubemapLayout`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L814)
```c ```c
LoadTextureCubemap(Image image, int layout); LoadTextureCubemap(Image image, int layout);
``` ```
[`enum FontType](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L824) [`enum FontType`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L824)
```c ```c
LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount, int type); LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount, int type);
``` ```
[`enum BlendMode](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L831) [`enum BlendMode`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L831)
```c ```c
BeginBlendMode(int mode); BeginBlendMode(int mode);
``` ```
[`enum Gestures](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L842) [`enum Gestures`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L842)
```c ```c
SetGesturesEnabled(unsigned int flags); SetGesturesEnabled(unsigned int flags);
IsGestureDetected(int gesture); IsGestureDetected(int gesture);
//GetGestureDetected(void); //GetGestureDetected(void);
``` ```
[`enum CameraMode](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L857) [`enum CameraMode`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L857)
```c ```c
SetCameraMode(Camera camera, int mode); SetCameraMode(Camera camera, int mode);
``` ```
[`enum CameraProjection](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L866) [`enum CameraProjection`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L866)
```c ```c
struct Camera3D.projection struct Camera3D.projection
``` ```
[`enum NPatchLayout](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L872) [`enum NPatchLayout`](https://github.com/raysan5/raylib/blob/master/src/raylib.h#L872)
```c
struct nPatchInfo.layout struct nPatchInfo.layout
``` ```