mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-17 05:02:29 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
46
src/gx/gll/GLCommand.h
Normal file
46
src/gx/gll/GLCommand.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef GX_GLL_GL_COMMAND_H
|
||||
#define GX_GLL_GL_COMMAND_H
|
||||
|
||||
#include "gx/gll/GLMipmap.h"
|
||||
|
||||
class GLDevice;
|
||||
|
||||
class GLCommand {
|
||||
public:
|
||||
// Virtual member functions
|
||||
virtual void Execute(GLDevice*) = 0;
|
||||
};
|
||||
|
||||
class GLFlush : public GLCommand {
|
||||
public:
|
||||
// Virtual member functions
|
||||
virtual void Execute(GLDevice* device);
|
||||
};
|
||||
|
||||
class GLTexUnmap : public GLCommand {
|
||||
public:
|
||||
// Member variables
|
||||
GLTexture* m_Texture;
|
||||
GLMipmap* m_Mipmap;
|
||||
GLMipmap::MapParams* m_MapParams;
|
||||
|
||||
// Virtual member functions
|
||||
virtual void Execute(GLDevice*);
|
||||
|
||||
// Member functions
|
||||
GLTexUnmap(GLTexture*, GLMipmap*, GLMipmap::MapParams*);
|
||||
};
|
||||
|
||||
class GLTexDestroy : public GLCommand {
|
||||
public:
|
||||
// Member variables
|
||||
GLTexture* m_Texture;
|
||||
|
||||
// Virtual member functions
|
||||
virtual void Execute(GLDevice* device);
|
||||
|
||||
// Member functions
|
||||
GLTexDestroy(GLTexture* texture);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue