MCPcopy Create free account
hub / github.com/HailToDodongo/pyrite64 / System

Method System

n64/engine/src/renderer/particles/ptxSystem.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "lib/matrixManager.h"
7
8P64::PTX::System::System(Type ptxType, uint32_t maxSize)
9 : countMax{maxSize}, count{0}, type{ptxType}
10{
11 assert(sizeof(countMax) % 2 == 0);
12 if(countMax > 0) {
13 std::size_t allocSize = countMax * sizeof(TPXParticle) / 2;
14 particles = malloc_uncached(allocSize);
15 sys_hw_memset(particles, 0, allocSize);
16 }
17}
18
19P64::PTX::System::~System() {
20 if(particles) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected