mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Refactor geom
library into geom
and shape
(#1263)
* Refactor `geom` library into `geom` and `util` * Rename to `shape`
This commit is contained in:

committed by
GitHub

parent
5b19d7953a
commit
1b99d75543
30
LEGO1/lego/sources/shape/legovertex.cpp
Normal file
30
LEGO1/lego/sources/shape/legovertex.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "legovertex.h"
|
||||
|
||||
#include "decomp.h"
|
||||
#include "misc/legostorage.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoVertex, 0x0c)
|
||||
|
||||
// FUNCTION: LEGO1 0x100d37b0
|
||||
LegoVertex::LegoVertex()
|
||||
{
|
||||
m_coordinates[0] = 0.0F;
|
||||
m_coordinates[1] = 0.0F;
|
||||
m_coordinates[2] = 0.0F;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100d37c0
|
||||
LegoResult LegoVertex::Read(LegoStorage* p_storage)
|
||||
{
|
||||
LegoResult result;
|
||||
if ((result = p_storage->Read(&m_coordinates[0], sizeof(m_coordinates[0]))) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
if ((result = p_storage->Read(&m_coordinates[1], sizeof(m_coordinates[1]))) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
if ((result = p_storage->Read(&m_coordinates[2], sizeof(m_coordinates[2]))) != SUCCESS) {
|
||||
return result;
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user