MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
Data Structures | Typedefs | Enumerations
mgdl-types.h File Reference

Library types, macros, defines and enums header. More...

#include <math.h>
#include <stdint.h>
#include <stdbool.h>
#include <mgdl/mgdl-vectorfunctions.h>
#include <mgdl/mgdl-opengl.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  Rect
 
struct  RectF
 

Typedefs

typedef uint8_t u8
 
typedef uint16_t u16
 
typedef int16_t s16
 
typedef uint32_t u32
 
typedef size_t sizetype
 
typedef void(* CallbackFunction) (void)
 Callback function type needed for platform initializing and rendering.
 
typedef enum ColorFormats ColorFormats
 
typedef enum TextureWrapModes TextureWrapModes
 
typedef enum TextureFilterModes TextureFilterModes
 
typedef enum MaterialType MaterialType
 
typedef enum AlignmentModes AlignmentModes
 
typedef enum ScreenAspect ScreenAspect
 
typedef enum PlatformInitFlag PlatformInitFlag
 
typedef enum IconSymbol IconSymbol
 
typedef enum MeshAttributeFlags MeshAttributeFlags
 
typedef enum CameraMode CameraMode
 
typedef struct Rect Rect
 
typedef struct RectF RectF
 

Enumerations

enum  ColorFormats { Gray , GrayAlpha , RGB , RGBA }
 Input color format options. More...
 
enum  TextureWrapModes { Clamp , Repeat , Mirror }
 Texture wrap modes. More...
 
enum  TextureFilterModes {
  Nearest , Linear , NR_MM_NR , LN_MM_NR ,
  NR_MM_LN , LN_MM_LN
}
 Texture filter modes. More...
 
enum  MaterialType { Diffuse , Matcap }
 Material types. More...
 
enum  AlignmentModes {
  Centered = 0x7ff0 , PCentered = 0x7ff1 , Pivot = 0x7ff2 , CPivot = 0x7ff3 ,
  RJustify = 0x7ff4 , LJustify = 0x7ff5
}
 Alignment modes. More...
 
enum  ScreenAspect { ScreenAuto , Screen16x9 , Screen4x3 }
 
enum  PlatformInitFlag { FlagNone = 0x0 , FlagPauseUntilA = 0x01 , FlagFullScreen = 0x02 , FlagSplashScreen = 0x04 }
 
enum  IconSymbol {
  Icon_Dot = 0x7f , Icon_FaceInvert = 0x80 , Icon_Face , Icon_ArrowUp ,
  Icon_TriangleUp , Icon_ScrollArrow , Icon_Printer , Icon_Skull ,
  Icon_LightningBolt , Icon_Notes , Icon_Sparkle , Icon_Key ,
  Icon_Chevrons , Icon_Alien , Icon_Spiral , Icon_FloppyDisk ,
  Icon_Folder , Icon_Lock , Icon_Bird , Icon_Clock ,
  Icon_Ghost , Icon_Pill , Icon_SquareWave , Icon_SawWave ,
  Icon_TriangleWave , Icon_Bottle , Icon_PartyLeben , Icon_WiFi ,
  Icon_Popsicle , Icon_CursorPoint , Icon_CursorBase , Icon_NekoEar ,
  Icon_NekoFace , IconSymbol_Count , Icon_DiagonalFill = Icon_CursorPoint , Icon_CursorWing = Icon_NekoEar
}
 
enum  MeshAttributeFlags { FlagNormals = 1 , FlagUVs = 2 , FlagColors = 4 }
 
enum  CameraMode { CameraTarget = 0 , CameraDirection = 1 }
 

Detailed Description

Library types, macros, defines and enums header.

Enumeration Type Documentation

◆ AlignmentModes

Alignment modes.

Alignment modes for different drawing functions. For vertical (y) alignment the LJustify means top and RJustify means bottom

Enumerator
Centered 

Centered.

PCentered 

Pixel centered (most noticable when image is zoomed in).

Pivot 

Aligned according to its pivot coordinate (only applicable to gdl::SpriteSet functions).

CPivot 

Aligned according to its pivot coordinate and pixel centered (only applicable to gdl::SpriteSet functions).

RJustify 

Right justified (also bottom justified when used for the Y pivot axis).

LJustify 

Left justified (also top justified when used for the Y axis) The default alignment;

◆ ColorFormats

Input color format options.

Options for the gdl::Texture::ConvertRawImage() function when converting raw image data into a texture. These are not to be confused with gdl::TextureFormatModes which designates GX texture formats.

Enumerator
Gray 

8-bit grayscale (I8).

GrayAlpha 

16-bit grayscale with alpha (I8A8).

RGB 

24-bit true-color RGB (R8G8B8).

RGBA 

32-bit true-color RGBA (R8G8B8A8).

◆ MaterialType

Material types.

Different types of materials for rendering meshes.

◆ TextureFilterModes

Texture filter modes.

Filter modes for gdl::Texture and gdl::Image classes for creation and loading functions.

Note
Mipmapped filtering modes only work if the texture or image was created with gdl::Texture::CreateMipmapped(), gdl::Image::CreateMipmapped() and gdl::Image::LoadImageMipmapped() and must be specified to the minFilt parameter of said functions to work.
Enumerator
Nearest 

Nearest-neighbor interpolation.

Linear 

Linear interpolation.

NR_MM_NR 

Near-mipmap-Near (texture must be mipmapped).

LN_MM_NR 

Linear-mipmap-Near (texture must be mipmapped).

NR_MM_LN 

Near-mipmap-Linear (texture must be mipmapped).

LN_MM_LN 

Linear-mipmap-Linear (texture must be mipmapped).

◆ TextureWrapModes

Texture wrap modes.

Wrapping modes for gdl::Texture::SetWrapMode().

Note
Wrapping modes other than gdl::Clamp require a texture resolution that is a power of two to work correctly.
Enumerator
Clamp 

Clamped (no wrap).

Repeat 

Repeated wrap (only applicable to power of two textures).

Mirror 

Mirrored wrap (only applicable to power of two textures).