1#include <game/mLib/m_3d.hpp>
3m3d::scnLeaf_c::scnLeaf_c() {
7m3d::scnLeaf_c::~scnLeaf_c() {
11void m3d::scnLeaf_c::remove() {
12 if (mpScn ==
nullptr) {
19void m3d::scnLeaf_c::entry() {
23void m3d::scnLeaf_c::setOption(ulong option, ulong value) {
24 mpScn->SetScnObjOption(option, value);
27bool m3d::scnLeaf_c::getOption(ulong option, ulong *value)
const {
28 return mpScn->GetScnObjOption(option, value);
31void m3d::scnLeaf_c::setScale(
float x,
float y,
float z) {
32 mpScn->SetScale(x, y, z);
35void m3d::scnLeaf_c::setScale(
const nw4r::math::VEC3 &scale) {
36 mpScn->SetScale(scale);
39void m3d::scnLeaf_c::setLocalMtx(
const nw4r::math::MTX34 *mtx) {
40 mpScn->SetMtx(nw4r::g3d::ScnObj::TYPE_LOCAL, mtx);
43void m3d::scnLeaf_c::getLocalMtx(nw4r::math::MTX34 *mtx)
const {
44 mpScn->GetMtx(nw4r::g3d::ScnObj::TYPE_LOCAL, mtx);
47void m3d::scnLeaf_c::getViewMtx(nw4r::math::MTX34 *mtx)
const {
48 mpScn->GetMtx(nw4r::g3d::ScnObj::TYPE_VIEW, mtx);
51void m3d::scnLeaf_c::calc(
bool keepEnabledAfter) {
54 if (!keepEnabledAfter) {
59void m3d::scnLeaf_c::calcVtx(
bool keepEnabledAfter) {
62 if (!keepEnabledAfter) {
67void m3d::scnLeaf_c::setPriorityDraw(
int prioOpa,
int prioXlu) {
68 mpScn->SetPriorityDrawOpa(prioOpa);
69 mpScn->SetPriorityDrawXlu(prioXlu);
@ G3DPROC_CALC_VTX
Performs vertex array calculations.
@ G3DPROC_CALC_WORLD
Calculates the world transform matrix.
@ OPTID_DISABLE_CALC_WORLD
Execution of ScnRoot::CalcWorld is skipped.
@ OPTID_DISABLE_CALC_VTX
Execution of ScnRoot::CalcVtx is skipped.