Skip to content

Commit

Permalink
Move GfxAPIType enum from GfxLibrary.h to Gfx_wrapper.h.
Browse files Browse the repository at this point in the history
To make it more accessible.
  • Loading branch information
DreamyCecil committed Nov 11, 2023
1 parent 084c643 commit f186638
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Sources/Engine/Graphics/GfxLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,6 @@ struct CTVERTEX {
#define D3DFVF_CTVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1)
#endif

// Gfx API type
enum GfxAPIType
{
GAT_NONE = -1, // no gfx API (gfx functions are disabled)
GAT_OGL = 0, // OpenGL
GAT_D3D = 1, // Direct3D

GAT_MAX, // [Cecil] Amount of graphics APIs

GAT_CURRENT = 9, // current API
};


// vertex type (for lock/unlock function)
enum VtxType
{
Expand All @@ -99,7 +86,6 @@ enum VtxType
VXT_COL = 4, // color
};


// common flags
#define GLF_HASACCELERATION (1UL<<0) // set if current mode supports hardware acceleration
#define GLF_INITONNEXTWINDOW (1UL<<1) // initialize rendering context on next window
Expand Down
12 changes: 12 additions & 0 deletions Sources/Engine/Graphics/Gfx_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#endif

// [Cecil] Moved from GfxLibrary.h
enum GfxAPIType
{
GAT_NONE = -1, // no gfx API (gfx functions are disabled)
GAT_OGL = 0, // OpenGL
GAT_D3D = 1, // Direct3D

GAT_MAX, // [Cecil] Amount of graphics APIs

GAT_CURRENT = 9, // current API
};

enum GfxBlend
{
GFX_ONE = 21,
Expand Down

0 comments on commit f186638

Please sign in to comment.