forked from isledecomp/racers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgoldisplaysurface.cpp
More file actions
37 lines (30 loc) · 801 Bytes
/
Copy pathgoldisplaysurface.cpp
File metadata and controls
37 lines (30 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "surface/goldisplaysurface.h"
#include "golsurfaceformat.h"
#include <stddef.h>
DECOMP_SIZE_ASSERT(GolDisplaySurface, 0x38)
// FUNCTION: GOLDP 0x1001d730
GolDisplaySurface::GolDisplaySurface()
{
m_displayDrawState = NULL;
m_surfaceFlags = 0;
}
// FUNCTION: GOLDP 0x1001d770
GolDisplaySurface::~GolDisplaySurface()
{
m_displayDrawState = NULL;
m_surfaceFlags = 0;
}
// FUNCTION: GOLDP 0x1001d790
void GolDisplaySurface::Create(GolDrawState* p_drawState, undefined4 p_width, undefined4 p_height, undefined4 p_bpp)
{
m_displayDrawState = p_drawState;
m_width = (LegoU16) p_width;
m_height = (LegoU16) p_height;
m_textureFormat.m_bitsPerPixel = (LegoU16) p_bpp;
}
// FUNCTION: GOLDP 0x1001d7c0
void GolDisplaySurface::Destroy()
{
m_displayDrawState = NULL;
m_surfaceFlags = 0;
}