mirror of
https://github.com/rwengine/openrw.git
synced 2024-10-05 16:47:19 +02:00
5b9c95d346
+ Add CutsceneData structures to store the data required. + Implement screen fading in and out (todo: splash screen fading) + Add GameData::openFile2() returns a handle to open file memory + size + Fix fog implementation + Add screenspace rect to GameRenderer for fades and cinematics
43 lines
784 B
C++
43 lines
784 B
C++
#pragma once
|
|
#ifndef _GAMESHADERS_HPP_
|
|
#define _GAMESHADERS_HPP_
|
|
|
|
/**
|
|
* @brief collection of shaders to make managing them a little easier.
|
|
*/
|
|
namespace GameShaders {
|
|
|
|
struct WaterHQ {
|
|
static const char* VertexShader;
|
|
static const char* FragmentShader;
|
|
};
|
|
|
|
struct Sky {
|
|
static const char* VertexShader;
|
|
static const char* FragmentShader;
|
|
};
|
|
|
|
struct WorldObject {
|
|
static const char* VertexShader;
|
|
static const char* FragmentShader;
|
|
};
|
|
|
|
/** @brief Particle effect shaders, uses WorldObject::VertexShader */
|
|
struct Particle {
|
|
static const char* FragmentShader;
|
|
};
|
|
|
|
/**
|
|
* @brief The ScreenSpaceRect shader
|
|
*
|
|
* Used to draw black bars, splash screens, fading etc.
|
|
*/
|
|
struct ScreenSpaceRect {
|
|
static const char* VertexShader;
|
|
static const char* FragmentShader;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|