MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcInitCanvasModule

Function nullcInitCanvasModule

NULLC/includes/canvas.cpp:352–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350
351#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("img.canvas", (void(*)())NULLCCanvas::funcPtr, name, index)) return false;
352bool nullcInitCanvasModule()
353{
354 REGISTER_FUNC(CanvasClearRGB, "Canvas::Clear", 0);
355 REGISTER_FUNC(CanvasClearRGBA, "Canvas::Clear", 1);
356 REGISTER_FUNC(CanvasSetColor, "Canvas::SetColor", 0);
357 REGISTER_FUNC(CanvasSetAA, "Canvas::SetAA", 0);
358 REGISTER_FUNC(CanvasDrawPoint, "Canvas::DrawPoint", 0);
359 REGISTER_FUNC(CanvasDrawPointA, "Canvas::DrawPoint", 1);
360 REGISTER_FUNC(CanvasDrawLine, "Canvas::DrawLine", 0);
361 REGISTER_FUNC(CanvasDrawRect, "Canvas::DrawRect", 0);
362 REGISTER_FUNC(CanvasDrawRectA, "Canvas::DrawRect", 1);
363
364 return true;
365}

Callers 5

RunTestsFunction · 0.85
WinMainFunction · 0.85
mainFunction · 0.85
RunMethod · 0.85
SpeedTestTextFunction · 0.85

Calls

no outgoing calls

Tested by 3

RunTestsFunction · 0.68
RunMethod · 0.68
SpeedTestTextFunction · 0.68