16static bool GsMemInitted =
false;
42 GS::CMemManager& mm = GS::CMemArea::GetMemManager();
120 GS::CMemManager& mm = GS::CMemArea::GetMemManager();
121 GS::CMemSlot* newSlot = mm.AddSlot(startingPage, pageLength, (GS::tPSM)pixelMode);
125 return reinterpret_cast<pgl_slot_handle_t
>(newSlot);
134 GS::CMemSlot* slot =
reinterpret_cast<GS::CMemSlot*
>(slot_handle);
144 GS::CMemSlot* slot =
reinterpret_cast<GS::CMemSlot*
>(slot_handle);
153 GS::CMemManager& mm = GS::CMemArea::GetMemManager();
187 GS::CMemArea* newArea =
new GS::CMemArea(width, height, (GS::tPSM)pix_format);
188 return reinterpret_cast<pgl_area_handle_t
>(newArea);
196 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
212 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
222 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
233 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
234 area->SetWordAddr(addr);
243 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
244 GS::CMemSlot* slot =
reinterpret_cast<GS::CMemSlot*
>(mem_slot);
245 slot->Bind(*area, 0);
253 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
263 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
271 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
279 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
280 return (
int)area->IsAllocated();
288 GS::CMemArea* area =
reinterpret_cast<GS::CMemArea*
>(mem_area);
289 return area->GetWordAddr();
void pglDestroyGsMemArea(pgl_area_handle_t mem_area)
void pglSetGsMemAreaWordAddr(pgl_area_handle_t mem_area, unsigned int addr)
void pglLockGsMemArea(pgl_area_handle_t mem_area)
int pglGsMemAreaIsAllocated(pgl_area_handle_t mem_area)
void pglBindGsMemAreaToSlot(pgl_area_handle_t mem_area, pgl_slot_handle_t mem_slot)
void pglUnlockGsMemArea(pgl_area_handle_t mem_area)
void pglFreeGsMemArea(pgl_area_handle_t mem_area)
unsigned int pglGetGsMemAreaWordAddr(pgl_area_handle_t mem_area)
void pglUnbindGsMemArea(pgl_area_handle_t mem_area)
pgl_area_handle_t pglCreateGsMemArea(int width, int height, unsigned int pix_format)
void pglAllocGsMemArea(pgl_area_handle_t mem_area)
void pglRemoveAllGsMemSlots()
pgl_slot_handle_t pglAddGsMemSlot(int startingPage, int pageLength, unsigned int pixelMode)
void pglUnlockGsMemSlot(pgl_slot_handle_t slot_handle)
void pglLockGsMemSlot(pgl_slot_handle_t slot_handle)
int pglHasGsMemBeenInitted()
void pglPrintGsMemAllocation()