From 677ce3960cd13cbf994311c76d75b343b22fd480 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sat, 29 Sep 2012 10:40:11 +0200 Subject: Some fixes and optimizations - fixed 2nd texture setting - added padding to some structs for faster access - changed rendering primitives to glDrawArrays() - optimized texture modesetting calls - fixed some valgrind errors --- src/graphics/core/device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/graphics/core/device.h') diff --git a/src/graphics/core/device.h b/src/graphics/core/device.h index 7c60d21..71ebef7 100644 --- a/src/graphics/core/device.h +++ b/src/graphics/core/device.h @@ -305,6 +305,9 @@ public: //! Returns the current params of texture stage with given index virtual TextureStageParams GetTextureStageParams(int index) = 0; + //! Sets only the texture wrap modes (for faster than thru stage params) + virtual void SetTextureStageWrap(int index, TexWrapMode wrapS, TexWrapMode wrapT) = 0; + //! Sets the texture factor to the given color value virtual void SetTextureFactor(const Color &color) = 0; //! Returns the current texture factor -- cgit v1.2.3-1-g7c22 From 5a751d9c0da79b38d4104bbe0cc1b5feec3d6ecc Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sat, 29 Sep 2012 19:35:14 +0200 Subject: Fixed texture regression There was a bug in texture modesetting but only visible after certain mode changes. --- src/graphics/core/device.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/graphics/core/device.h') diff --git a/src/graphics/core/device.h b/src/graphics/core/device.h index 71ebef7..0d76644 100644 --- a/src/graphics/core/device.h +++ b/src/graphics/core/device.h @@ -99,7 +99,6 @@ enum TransformType enum RenderState { RENDER_STATE_LIGHTING, - RENDER_STATE_TEXTURING, RENDER_STATE_BLENDING, RENDER_STATE_FOG, RENDER_STATE_DEPTH_TEST, -- cgit v1.2.3-1-g7c22