mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-13 09:38:14 +03:00
renderer: Don't include unnecessary headers
This commit is contained in:
@@ -5,9 +5,13 @@
|
||||
|
||||
#include "dof.hpp"
|
||||
#include "../rob/rob.hpp"
|
||||
#include "../camera.hpp"
|
||||
#include "../gl_rend_state.hpp"
|
||||
#include "../gl_state.hpp"
|
||||
#include "../render_context.hpp"
|
||||
#include "../render_texture.hpp"
|
||||
#include "../shader_ft.hpp"
|
||||
#include "../static_var.hpp"
|
||||
|
||||
struct dof_common_shader_data {
|
||||
vec4 g_depth_params; //x=(n-f)/(nf), y=1/n, z=coc_from_z_scale, w=coc_from_z_offset
|
||||
@@ -261,8 +265,7 @@ namespace renderer {
|
||||
}
|
||||
|
||||
// 0x1404B1950
|
||||
void DOF3::render_tiles(render_data_context& rend_data_ctx,
|
||||
GLuint depth_texture, bool f2) {
|
||||
void DOF3::render_tiles(render_data_context& rend_data_ctx, GLuint depth_texture, bool f2) {
|
||||
rend_data_ctx.state.begin_event("renderer::DOF3::render_tiles");
|
||||
m_fbo[0].bind_fbo(rend_data_ctx.state);
|
||||
rend_data_ctx.shader_flags.arr[U_DOF_STAGE] = 0;
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
|
||||
#include "../../KKdLib/default.hpp"
|
||||
#include "../GL/uniform_buffer.hpp"
|
||||
#include "../render_texture.hpp"
|
||||
#include "fbo.hpp"
|
||||
|
||||
enum dof_debug_flags {
|
||||
@@ -38,6 +37,7 @@ struct dof_pv {
|
||||
dof_f2 f2;
|
||||
};
|
||||
|
||||
class RenderTexture;
|
||||
struct render_data_context;
|
||||
|
||||
namespace renderer {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "fbo.hpp"
|
||||
#include "../gl_rend_state.hpp"
|
||||
#include "../gl_state.hpp"
|
||||
|
||||
namespace renderer {
|
||||
|
||||
@@ -5,9 +5,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../gl_rend_state.hpp"
|
||||
#include "../../KKdLib/default.hpp"
|
||||
#include "../gl.hpp"
|
||||
#include "../shared.hpp"
|
||||
|
||||
struct p_gl_rend_state;
|
||||
|
||||
namespace renderer {
|
||||
class FBO {
|
||||
private:
|
||||
@@ -57,5 +60,4 @@ namespace renderer {
|
||||
inline GLuint FBO::get_tex(int32_t index) const {
|
||||
return m_tex[index];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "../gl_rend_state.hpp"
|
||||
#include "../render.hpp"
|
||||
#include "../render_context.hpp"
|
||||
#include "../render_texture.hpp"
|
||||
#include "../shader_ft.hpp"
|
||||
|
||||
extern render_context* rctx_ptr;
|
||||
|
||||
@@ -6,10 +6,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../KKdLib/default.hpp"
|
||||
#include "../../KKdLib/vec.hpp"
|
||||
#include "../render_texture.hpp"
|
||||
#include "fbo.hpp"
|
||||
|
||||
class RenderTexture;
|
||||
struct render_data_context;
|
||||
|
||||
namespace renderer {
|
||||
|
||||
Reference in New Issue
Block a user