Implement/match Lego3DView and parent classes (#412)

* Implement/match TglSurface

* Implement/match LegoView/1

* Lego3DView

* Fixes

* Lego3DManager

* Remove garbage

* Remove garbage

* Use shorthand calls
This commit is contained in:
Christian Semmler
2024-01-06 21:29:32 -05:00
committed by GitHub
parent dc3500f631
commit 8db36722d8
22 changed files with 1132 additions and 293 deletions

View File

@@ -2,7 +2,9 @@
#define _MxStopWatch_h
#include "assert.h"
#include "winbase.h"
#include <math.h>
#include <windows.h>
//////////////////////////////////////////////////////////////////////////////
//
@@ -13,6 +15,7 @@
#define HUGE_VAL_IMMEDIATE 1.7976931348623157e+308
// SIZE 0x18
class MxStopWatch {
public:
MxStopWatch();
@@ -28,11 +31,11 @@ protected:
unsigned long TicksPerSeconds() const;
private:
LARGE_INTEGER m_startTick;
LARGE_INTEGER m_startTick; // 0x00
// ??? when we provide LARGE_INTEGER arithmetic, use a
// LARGE_INTEGER m_elapsedTicks rather than m_elapsedSeconds
double m_elapsedSeconds;
unsigned long m_ticksPerSeconds;
double m_elapsedSeconds; // 0x0c
unsigned long m_ticksPerSeconds; // 0x14
};
inline MxStopWatch::MxStopWatch()
@@ -99,6 +102,7 @@ inline double MxStopWatch::ElapsedSeconds() const
// MxFrequencyMeter
//
// SIZE 0x20
class MxFrequencyMeter {
public:
MxFrequencyMeter();
@@ -114,8 +118,8 @@ public:
void IncreaseOperationCount(unsigned long);
private:
unsigned long m_operationCount;
MxStopWatch m_stopWatch;
unsigned long m_operationCount; // 0x00
MxStopWatch m_stopWatch; // 0x08
};
//////////////////////////////////////////////////////////////////////////////