From 85bfecf1e9af3f2b39ce1d5ac1e5cc2050c2ee6f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 7 Mar 2014 19:17:59 +0100 Subject: [PATCH] (D3D) Cleanup render_chain.hpp --- gfx/d3d9/render_chain.hpp | 69 --------------------------------------- 1 file changed, 69 deletions(-) diff --git a/gfx/d3d9/render_chain.hpp b/gfx/d3d9/render_chain.hpp index bd4d5fdfef..467b0df769 100644 --- a/gfx/d3d9/render_chain.hpp +++ b/gfx/d3d9/render_chain.hpp @@ -161,74 +161,5 @@ void renderchain_bind_prev(void *data, Pass &pass); void renderchain_bind_luts(void *data, Pass &pass); void renderchain_bind_pass(void *data, Pass &pass, unsigned pass_index); -#if 0 -class RenderChain -{ - public: - bool set_pass_size(unsigned pass, unsigned width, unsigned height); - void set_final_viewport(const D3DVIEWPORT &final_viewport); - bool add_pass(const LinkInfo &info); - bool add_lut(const std::string &id, const std::string &path, bool smooth); - void add_state_tracker(state_tracker_t *tracker); - - bool render(const void *data, - unsigned width, unsigned height, unsigned pitch, unsigned rotation); - - static void convert_geometry(const LinkInfo &info, - unsigned &out_width, unsigned &out_height, - unsigned width, unsigned height, - const D3DVIEWPORT &final_viewport); - - void clear(); - - private: - bool create_first_pass(const LinkInfo &info, PixelFormat fmt); -#if defined(HAVE_CG) - bool compile_shaders(CGprogram &fPrg, CGprogram &vPrg, const std::string &shader); - void destroy_stock_shader(void); - void destroy_shader(int i); - void set_shaders(CGprogram &fPrg, CGprogram &vPrg); - void set_shader_mvp(CGprogram &vPrg, D3DXMATRIX &tmp); - void set_shader_params(Pass &pass, - unsigned input_w, unsigned input_h, - unsigned tex_w, unsigned tex_h, - unsigned vp_w, unsigned vp_h); - void bind_tracker(Pass &pass, unsigned pass_index); - void bind_orig(Pass &pass); - void bind_prev(Pass &pass); - void bind_pass(Pass &pass, unsigned pass_index); - bool init_shader_fvf(Pass &pass); - void bind_luts(Pass &pass); -#endif - void set_mvp(CGprogram &vPrg, - unsigned vp_width, unsigned vp_height, - unsigned rotation); - - void set_vertices(Pass &pass, - unsigned width, unsigned height, - unsigned out_width, unsigned out_height, - unsigned vp_width, unsigned vp_height, - unsigned rotation); - void set_viewport(const D3DVIEWPORT &vp); - - void clear_texture(Pass &pass); - - void blit_to_texture(const void *data, - unsigned width, unsigned height, - unsigned pitch); - - void render_pass(Pass &pass, unsigned pass_index); - void log_info(const LinkInfo &info); - - D3DTEXTUREFILTERTYPE translate_filter(enum gfx_filter_type type); - D3DTEXTUREFILTERTYPE translate_filter(bool smooth); - - void start_render(); - void end_render(); - void unbind_all(); - -}; -#endif - #endif