Decompile 2 functions in Source/Render/Primitives/LightmappedPrimitive.cpp, Source/Render/Primitives/LightmappedPrimitive.h
Batch #11553 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_02245 LightmappedPrimitive::LightmappedPrimitive: logic confirmed by peer review - fn_02246 LightmappedPrimitive::LightmappedPrimitive: logic confirmed by peer review Peer-reviewed-by: KWDev, cremane, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
ca6d091e0e
commit
ea00947843
2 changed files with 6 additions and 11 deletions
|
|
@ -44,21 +44,12 @@ void LightmappedBuffer::Clear() {
|
|||
// OFFSET: 0x00569020
|
||||
// FUNCTION: fn_02246
|
||||
LightmappedPrimitive::LightmappedPrimitive() : vertices(this->quad), vertexCount(4), indices(nullptr), indexCount(0), primitiveType(D3DPT_TRIANGLESTRIP) {
|
||||
for (LightmappedVertex& vertex : this->quad) {
|
||||
vertex.x = 0.0f;
|
||||
vertex.y = 0.0f;
|
||||
vertex.z = 0.0f;
|
||||
vertex.rhw = 0.0f;
|
||||
vertex.diffuse = 0;
|
||||
vertex.specular = 0xFF000000u;
|
||||
vertex.u = 0.0f;
|
||||
vertex.v = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00568F90
|
||||
// FUNCTION: fn_02245
|
||||
LightmappedPrimitive::LightmappedPrimitive(const LightmappedPrimitive& other) : LightmappedPrimitive() {
|
||||
LightmappedPrimitive::LightmappedPrimitive(const LightmappedPrimitive& other)
|
||||
: vertices(this->quad), vertexCount(4), indices(nullptr), indexCount(0), primitiveType(D3DPT_TRIANGLESTRIP) {
|
||||
std::memcpy(this->quad, other.quad, sizeof(this->quad));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@
|
|||
class CTexture;
|
||||
|
||||
struct LightmappedVertex {
|
||||
// INLINED
|
||||
LightmappedVertex() : x(0.0f), y(0.0f), z(0.0f), rhw(0.0f), diffuse(0), specular(0xFF000000u), u(0.0f), v(0.0f) {
|
||||
}
|
||||
|
||||
/* 0000 */ float x;
|
||||
/* 0004 */ float y;
|
||||
/* 0008 */ float z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue