mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- removed the unused SurfaceShader class.
This commit is contained in:
parent
9ec66bafa1
commit
d752e33909
4 changed files with 0 additions and 42 deletions
|
@ -181,24 +181,3 @@ bool PolymostShader::Load(const char * name, const char * vert_prog, const char
|
|||
return true;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
bool SurfaceShader::Load(const char* name, const char* vert_prog, const char* frag_prog)
|
||||
{
|
||||
if (!FShader::Load(name, vert_prog, frag_prog)) return false;
|
||||
|
||||
glUseProgram(hShader);
|
||||
|
||||
int SamplerLoc;
|
||||
SamplerLoc = glGetUniformLocation(hShader, "s_texture");
|
||||
glUniform1i(SamplerLoc, 0);
|
||||
SamplerLoc = glGetUniformLocation(hShader, "s_palette");
|
||||
glUniform1i(SamplerLoc, 1);
|
||||
|
||||
glUseProgram(0);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -63,10 +63,3 @@ public:
|
|||
virtual bool Load(const char * name, const char * vert_prog_lump, const char * fragprog); //, const char * fragprog2, const char *defines);
|
||||
};
|
||||
|
||||
class SurfaceShader : public FShader
|
||||
{
|
||||
public:
|
||||
SurfaceShader() = default;
|
||||
virtual bool Load(const char* name, const char* vert_prog_lump, const char* fragprog); //, const char * fragprog2, const char *defines);
|
||||
|
||||
};
|
||||
|
|
|
@ -145,8 +145,6 @@ void GLInstance::Deinit()
|
|||
#endif
|
||||
if (polymostShader) delete polymostShader;
|
||||
polymostShader = nullptr;
|
||||
if (surfaceShader) delete surfaceShader;
|
||||
surfaceShader = nullptr;
|
||||
activeShader = nullptr;
|
||||
palmanager.DeleteAll();
|
||||
lastPalswapIndex = -1;
|
||||
|
@ -255,15 +253,6 @@ void GLInstance::SetPolymostShader()
|
|||
}
|
||||
}
|
||||
|
||||
void GLInstance::SetSurfaceShader()
|
||||
{
|
||||
if (activeShader != surfaceShader)
|
||||
{
|
||||
surfaceShader->Bind();
|
||||
activeShader = surfaceShader;
|
||||
}
|
||||
}
|
||||
|
||||
void GLInstance::SetPalette(int index)
|
||||
{
|
||||
palmanager.BindPalette(index);
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
|
||||
class FShader;
|
||||
class PolymostShader;
|
||||
class SurfaceShader;
|
||||
class FGameTexture;
|
||||
class GLInstance;
|
||||
class F2DDrawer;
|
||||
|
@ -122,7 +121,6 @@ class GLInstance
|
|||
PolymostRenderState renderState;
|
||||
FShader* activeShader;
|
||||
PolymostShader* polymostShader;
|
||||
SurfaceShader* surfaceShader;
|
||||
|
||||
|
||||
public:
|
||||
|
@ -172,7 +170,6 @@ public:
|
|||
}
|
||||
|
||||
void SetPolymostShader();
|
||||
void SetSurfaceShader();
|
||||
void SetPalette(int palette);
|
||||
|
||||
void ReadPixels(int w, int h, uint8_t* buffer);
|
||||
|
|
Loading…
Reference in a new issue