mirror of
https://github.com/ENSL/NS.git
synced 2024-11-26 14:30:54 +00:00
8ab1a69972
- add GLSL postprocessing shader to world view and have it replicate the old gamma ramp - clear framebuffer between frames to fix visual bugs outside map - remove old gamma ramp code (was disabled) and remove gamma adjustments to hud elements as they're now unaffected by the shader - additional visual preset config updates
37 lines
799 B
C++
37 lines
799 B
C++
#ifndef SPRITEPANEL_H
|
|
#define SPRITEPANEL_H
|
|
|
|
#include "VGUI_Panel.h"
|
|
//#include "ui/GammaAwareComponent.h"
|
|
#include "ui/ReloadableComponent.h"
|
|
#include "../types.h"
|
|
|
|
typedef int AVHHSPRITE;
|
|
|
|
class SpritePanel : public vgui::Panel, public ReloadableComponent//, public GammaAwareComponent
|
|
{
|
|
public:
|
|
SpritePanel(const string& inBaseSpriteName, const string& inRenderMode);
|
|
|
|
//virtual void NotifyGammaChange(float inGammaSlope);
|
|
|
|
virtual void SetVAlignment(const string& inAlignment);
|
|
|
|
virtual void VidInit(void);
|
|
|
|
protected:
|
|
int GetNumSpritesAcross();
|
|
int GetNumSpritesDown();
|
|
virtual void paint();
|
|
virtual void paintBackground();
|
|
|
|
private:
|
|
string mBaseSpriteName;
|
|
string mRenderMode;
|
|
string mVAlignment;
|
|
AVHHSPRITE mSpriteHandle;
|
|
//float mGammaSlope;
|
|
|
|
};
|
|
|
|
#endif
|