blob: c895b7e56ccd761d2f6a4a70cffb3cb60e2dd313 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# -*- coding: utf-8 -*-
from src_util import *
def commandDirectInitStatement (command):
# Workaround for broken headers
if command.name == "glShaderSource":
cast = "(%s)" % getFunctionTypeName(command.name)
else:
cast = ""
return "gl->%s\t= %s&%s;" % (getFunctionMemberName(command.name),
cast,
command.name)
def genESDirectInit (registry):
genCommandLists(registry, commandDirectInitStatement,
check = lambda api, _: api == 'gles2',
directory = OPENGL_INC_DIR,
filePattern = "glwInit%sDirect.inl",
align = True)
if __name__ == "__main__":
genESDirectInit(getGLRegistry())
|