MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GlGetString

Function GlGetString

src/video/opengl.cpp:136–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134GetOGLProcAddressProc GetOGLProcAddress;
135
136static std::optional<std::string_view> GlGetString(GLenum name)
137{
138 auto str = reinterpret_cast<const char *>(_glGetString(name));
139 if (str == nullptr) return {};
140 return str;
141}
142
143/**
144 * Find a substring in a string made of space delimited elements. The substring

Callers 4

InitMethod · 0.85
GetDriverNameMethod · 0.85
InitShadersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected