- moved gl_material into hwrenderer/.

This commit is contained in:
Christoph Oelckers 2018-04-24 23:39:58 +02:00
parent 0675315b41
commit 1a024a9f54
11 changed files with 41 additions and 11 deletions

View file

@ -1054,10 +1054,10 @@ set (PCH_SOURCES
gl/system/gl_wipe.cpp gl/system/gl_wipe.cpp
gl/textures/gl_hwtexture.cpp gl/textures/gl_hwtexture.cpp
gl/textures/gl_texture.cpp gl/textures/gl_texture.cpp
gl/textures/gl_material.cpp
gl/textures/gl_samplers.cpp gl/textures/gl_samplers.cpp
hwrenderer/data/flatvertices.cpp hwrenderer/data/flatvertices.cpp
hwrenderer/dynlights/hw_aabbtree.cpp hwrenderer/dynlights/hw_aabbtree.cpp
hwrenderer/textures/hw_material.cpp
menu/joystickmenu.cpp menu/joystickmenu.cpp
menu/loadsavemenu.cpp menu/loadsavemenu.cpp

View file

@ -35,13 +35,13 @@
#include "d_player.h" #include "d_player.h"
#include "g_levellocals.h" #include "g_levellocals.h"
#include "i_time.h" #include "i_time.h"
#include "hwrenderer/textures/hw_material.h"
#include "gl/system/gl_interface.h" #include "gl/system/gl_interface.h"
#include "gl/renderer/gl_renderer.h" #include "gl/renderer/gl_renderer.h"
#include "gl/scene/gl_drawinfo.h" #include "gl/scene/gl_drawinfo.h"
#include "gl/scene/gl_portal.h" #include "gl/scene/gl_portal.h"
#include "gl/models/gl_models.h" #include "gl/models/gl_models.h"
#include "gl/textures/gl_material.h"
#include "gl/renderer/gl_renderstate.h" #include "gl/renderer/gl_renderstate.h"
#include "gl/shaders/gl_shader.h" #include "gl/shaders/gl_shader.h"

View file

@ -26,7 +26,7 @@
#include <string.h> #include <string.h>
#include "gl/system/gl_interface.h" #include "gl/system/gl_interface.h"
#include "r_data/matrix.h" #include "r_data/matrix.h"
#include "gl/textures/gl_material.h" #include "hwrenderer/textures/hw_material.h"
#include "c_cvars.h" #include "c_cvars.h"
#include "r_defs.h" #include "r_defs.h"
#include "r_data/r_translate.h" #include "r_data/r_translate.h"

View file

@ -31,7 +31,7 @@
#include "gl/renderer/gl_lightdata.h" #include "gl/renderer/gl_lightdata.h"
#include "gl/scene/gl_drawinfo.h" #include "gl/scene/gl_drawinfo.h"
#include "gl/scene/gl_portal.h" #include "gl/scene/gl_portal.h"
#include "gl/textures/gl_material.h" #include "hwrenderer/textures/hw_material.h"
CVAR(Bool,gl_noskyboxes, false, 0) CVAR(Bool,gl_noskyboxes, false, 0)

View file

@ -31,6 +31,7 @@
#include "doomdata.h" #include "doomdata.h"
#include "g_levellocals.h" #include "g_levellocals.h"
#include "hwrenderer/dynlights/hw_dynlightdata.h" #include "hwrenderer/dynlights/hw_dynlightdata.h"
#include "hwrenderer/textures/hw_material.h"
#include "gl/system/gl_cvars.h" #include "gl/system/gl_cvars.h"
#include "gl/system/gl_interface.h" #include "gl/system/gl_interface.h"
@ -38,7 +39,6 @@
#include "gl/scene/gl_drawinfo.h" #include "gl/scene/gl_drawinfo.h"
#include "gl/scene/gl_portal.h" #include "gl/scene/gl_portal.h"
#include "gl/scene/gl_scenedrawer.h" #include "gl/scene/gl_scenedrawer.h"
#include "gl/textures/gl_material.h"
#include "gl/utility/gl_clock.h" #include "gl/utility/gl_clock.h"

View file

@ -29,13 +29,13 @@
#include "gl/system/gl_system.h" #include "gl/system/gl_system.h"
#include "templates.h" #include "templates.h"
#include "c_cvars.h" #include "c_cvars.h"
#include "hwrenderer/textures/hw_material.h"
#include "gl/system/gl_interface.h" #include "gl/system/gl_interface.h"
#include "gl/system/gl_cvars.h" #include "gl/system/gl_cvars.h"
#include "gl/system/gl_debug.h" #include "gl/system/gl_debug.h"
#include "gl/renderer/gl_renderer.h" #include "gl/renderer/gl_renderer.h"
#include "gl/renderer/gl_colormap.h" #include "gl/renderer/gl_colormap.h"
#include "gl/textures/gl_material.h"
#include "gl/textures/gl_samplers.h" #include "gl/textures/gl_samplers.h"

View file

@ -28,7 +28,7 @@
#include "gl/system/gl_debug.h" #include "gl/system/gl_debug.h"
#include "gl/renderer/gl_renderer.h" #include "gl/renderer/gl_renderer.h"
#include "gl_samplers.h" #include "gl_samplers.h"
#include "gl_material.h" #include "hwrenderer/textures/hw_material.h"
extern TexFilter_s TexFilter[]; extern TexFilter_s TexFilter[];

View file

@ -32,10 +32,10 @@
#include "r_state.h" #include "r_state.h"
#include "actor.h" #include "actor.h"
#include "textures/skyboxtexture.h" #include "textures/skyboxtexture.h"
#include "hwrenderer/textures/hw_material.h"
#include "gl/system/gl_interface.h" #include "gl/system/gl_interface.h"
#include "gl/renderer/gl_renderer.h" #include "gl/renderer/gl_renderer.h"
#include "gl/textures/gl_material.h"
#include "gl/textures/gl_samplers.h" #include "gl/textures/gl_samplers.h"
#include "gl/models/gl_models.h" #include "gl/models/gl_models.h"

View file

@ -0,0 +1,31 @@
#pragma once
#include <stdint.h>
typedef TMap<int, bool> SpriteHits;
class IHardwareTexture
{
public:
enum
{
MAX_TEXTURES = 16
};
public:
public:
IHardwareTexture() {}
virtual ~IHardwareTexture() {}
virtual void BindToFrameBuffer(int w, int h) = 0;
virtual bool BindOrCreate(FTexture *tex, int texunit, int clampmode, int translation, int flags) = 0;
virtual void AllocateBuffer(int w, int h, int texelsize) = 0;
virtual uint8_t *MapBuffer() = 0;
virtual unsigned int CreateTexture(unsigned char * buffer, int w, int h, int texunit, bool mipmap, int translation, const char *name) = 0;
virtual void Clean(bool all) = 0;
virtual void CleanUnused(SpriteHits &usedtranslations) = 0;
};

View file

@ -25,9 +25,8 @@
#include "sbar.h" #include "sbar.h"
#include "stats.h" #include "stats.h"
#include "r_utility.h" #include "r_utility.h"
#include "hwrenderer/textures/hw_ihwtexture.h" #include "hw_ihwtexture.h"
#include "hw_material.h"
#include "gl_material.h"
EXTERN_CVAR(Bool, gl_texture_usehires) EXTERN_CVAR(Bool, gl_texture_usehires)