diff --git a/Source/Render/DX9/TextureDX9.cpp b/Source/Render/DX9/TextureDX9.cpp index df847acc..d90dacca 100644 --- a/Source/Render/DX9/TextureDX9.cpp +++ b/Source/Render/DX9/TextureDX9.cpp @@ -9,11 +9,13 @@ namespace { // OFFSET: 0x00573170 + // FUNCTION: fn_02487 std::uint16_t Color4444(std::uint32_t color) { return ((color >> 16) & 0xF000) | ((color >> 12) & 0xF00) | ((color >> 8) & 0xF0) | ((color >> 4) & 0xF); } // OFFSET: 0x005731B0 + // FUNCTION: fn_02488 std::uint16_t Color565(std::uint32_t color) { return ((color >> 8) & 0xF800) | ((color >> 5) & 0x7E0) | ((color >> 3) & 0x1F); } diff --git a/Source/Render/Primitives/RenderVertexPool.cpp b/Source/Render/Primitives/RenderVertexPool.cpp index 86499e81..d64e9b27 100644 --- a/Source/Render/Primitives/RenderVertexPool.cpp +++ b/Source/Render/Primitives/RenderVertexPool.cpp @@ -65,6 +65,7 @@ RenderVertex* RenderVertexPool::Acquire(unsigned count) { } // OFFSET: 0x00AB77A0 +// FUNCTION: fn_17486 RenderVertex* RenderVertexPool::Block::Append(unsigned count) { const unsigned first = static_cast(this->size()); if (first + count > this->capacity()) { diff --git a/Source/Render/RendererDX7.cpp b/Source/Render/RendererDX7.cpp index 06be6802..6da1ab54 100644 --- a/Source/Render/RendererDX7.cpp +++ b/Source/Render/RendererDX7.cpp @@ -1,6 +1,7 @@ #include "Render/RendererDX7.h" // OFFSET: 0x0055EC00 +// FUNCTION: fn_02113 void CRendererDX7::SetClearColor(unsigned color) { this->clearColor = color; } @@ -11,6 +12,7 @@ void CRendererDX7::SetCamera(const float* eye, const float* target, const float* } // OFFSET: 0x0055F690 +// FUNCTION: fn_02117 void CRendererDX7::SetTextureFormat(unsigned format) { this->unknown_024C = format; } diff --git a/Source/Render/ScreenGeometry.cpp b/Source/Render/ScreenGeometry.cpp index fec6fdbc..3f7b8e6d 100644 --- a/Source/Render/ScreenGeometry.cpp +++ b/Source/Render/ScreenGeometry.cpp @@ -6,6 +6,7 @@ #include // OFFSET: 0x0054E2B0 +// FUNCTION: fn_01951 void DrawScreenLine( RenderPrimitivePool& primitives, RenderQueues& queues, float startX, float startY, float endX, float endY, int thickness, CTexture* texture, std::uint32_t color, bool depthAlpha, float depthStart, float depthEnd @@ -33,6 +34,7 @@ void DrawScreenLine( } // OFFSET: 0x0054DB40 +// FUNCTION: fn_01944 void DrawScreenQuad( RenderPrimitivePool& primitives, RenderQueues& queues, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, CTexture* texture, std::uint32_t color, bool depthAlpha, float depthStart, float depthEnd diff --git a/Source/Render/ScreenRectangle.cpp b/Source/Render/ScreenRectangle.cpp index 6b64cc75..47ed072b 100644 --- a/Source/Render/ScreenRectangle.cpp +++ b/Source/Render/ScreenRectangle.cpp @@ -5,6 +5,7 @@ #include "Render/Textures/TextureCache.h" // OFFSET: 0x0054E590 +// FUNCTION: fn_01953 void DrawBlendedRectangle( RenderPrimitivePool& primitives, TextureCache& textures, RenderQueues& queues, int x, int y, int width, int height, std::uint32_t color, bool depthAlpha, float depthStart, float depthEnd @@ -40,6 +41,7 @@ void DrawBlendedRectangle( } // OFFSET: 0x0054ED40 +// FUNCTION: fn_01954 void DrawTexturedRectangle( RenderPrimitivePool& primitives, TextureCache& textures, RenderQueues& queues, int x, int y, int width, int height, std::uint32_t color, CTexture* texture, bool depthAlpha, float depthStart, float depthEnd @@ -79,6 +81,7 @@ void DrawTexturedRectangle( } // OFFSET: 0x0054EFD0 +// FUNCTION: fn_01955 void DrawTextureRegion( RenderPrimitivePool& primitives, TextureCache& textures, RenderQueues& queues, float x, float y, float width, float height, std::uint32_t color, CTexture* texture, bool depthAlpha, float depthStart, float depthEnd diff --git a/Source/Render/TextureQuad.cpp b/Source/Render/TextureQuad.cpp index 1f7a6230..b8be6bf4 100644 --- a/Source/Render/TextureQuad.cpp +++ b/Source/Render/TextureQuad.cpp @@ -1,6 +1,7 @@ #include "Render/TextureQuad.h" // OFFSET: 0x0055D310 +// FUNCTION: fn_02101 float RhwToDepth(float rhw) { return ((1.0f / rhw - 10.0f) * 1.0067114f) * rhw; } diff --git a/Source/Render/UIRPDataDrawing.cpp b/Source/Render/UIRPDataDrawing.cpp index efdaf494..a5f03213 100644 --- a/Source/Render/UIRPDataDrawing.cpp +++ b/Source/Render/UIRPDataDrawing.cpp @@ -4,6 +4,7 @@ #include "Render/Textures/TextureCache.h" // OFFSET: 0x008130A0 +// FUNCTION: fn_10121 void UIRPData::DrawStretched(RenderPrimitivePool& pool, int x, int y, CTexture* texture, std::uint32_t color, int width, int height) { if (!texture) { return; @@ -42,6 +43,7 @@ void UIRPData::DrawStretched(RenderPrimitivePool& pool, int x, int y, CTexture* } // OFFSET: 0x008134B0 +// FUNCTION: fn_10122 void UIRPData::DrawNamed(RenderPrimitivePool& pool, TextureCache& textures, int x, int y, std::string name, std::uint32_t color, int width, int height) { CTexture* texture = textures.Load(name.c_str(), 0, true, true, false); if (!texture) { @@ -95,6 +97,7 @@ void UIRPData::DrawNamed(RenderPrimitivePool& pool, TextureCache& textures, int } // OFFSET: 0x00813A00 +// FUNCTION: fn_10123 void UIRPData::SetSolid(RenderPrimitivePool& pool, int width, int height, std::uint32_t color) { this->m_primitives.clear();