MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / SetColour

Method SetColour

src/gl_text.cpp:243–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void OpenGLText::SetColour(agi::Color col) {
244 r = col.r / 255.f;
245 g = col.g / 255.f;
246 b = col.b / 255.f;
247 a = col.a / 255.f;
248}
249
250void OpenGLText::Print(const std::string &text, int x, int y) {
251 glEnable(GL_BLEND);

Callers 5

UpdateStyleMethod · 0.45
DrawMethod · 0.45
OnPreviewColourChangeMethod · 0.45
OnColourChangedMethod · 0.45
OnPaintMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected