MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xCameraInit

Function xCameraInit

src/SB/Core/x/xCamera.cpp:39–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37void add_camera_tweaks();
38
39void xCameraInit(xCamera* cam, U32 width, U32 height)
40{
41 xCameraFXInit();
42
43 cam->lo_cam = iCameraCreate(width, height, 1);
44
45 xCameraSetFOV(cam, 75.0f);
46
47 cam->bound.sph.center.x = 0.0f;
48 cam->bound.sph.center.y = 0.0f;
49 cam->bound.sph.center.z = 0.0f;
50 cam->bound.sph.r = 0.5f;
51 cam->tgt_mat = NULL;
52 cam->tgt_omat = NULL;
53 cam->tgt_bound = NULL;
54 cam->sc = NULL;
55 cam->tran_accum.x = 0.0f;
56 cam->tran_accum.y = 0.0f;
57 cam->tran_accum.z = 0.0f;
58
59 add_camera_tweaks();
60}
61
62void add_camera_tweaks()
63{

Callers 2

zGameInitFunction · 0.85
zMenuInitFunction · 0.85

Calls 4

xCameraFXInitFunction · 0.85
xCameraSetFOVFunction · 0.85
add_camera_tweaksFunction · 0.85
iCameraCreateFunction · 0.70

Tested by

no test coverage detected