author | koda |
Sun, 11 Nov 2012 17:15:19 +0100 | |
branch | webgl |
changeset 8026 | 4a4f21070479 |
parent 7616 | dcda1c2b77e4 |
child 8105 | d088be5ecdcb |
permissions | -rw-r--r-- |
6512 | 1 |
system; |
2 |
||
3 |
type |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
4 |
uinteger = uinteger; |
6635
c2fa29fe2a58
Some progress, still can't find the source of bad behavior
unc0rr
parents:
6552
diff
changeset
|
5 |
Integer = integer; |
6512 | 6 |
LongInt = integer; |
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
7 |
LongWord = uinteger; |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
8 |
Cardinal = uinteger; |
6516 | 9 |
PtrInt = integer; |
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
10 |
Word = uinteger; |
6520 | 11 |
Byte = integer; |
12 |
SmallInt = integer; |
|
13 |
ShortInt = integer; |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
14 |
QWord = uinteger; |
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
15 |
GLint = integer; |
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
16 |
GLuint = integer; |
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
17 |
GLenum = integer; |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
18 |
|
7044 | 19 |
int = integer; |
7073 | 20 |
size_t = integer; |
6516 | 21 |
|
22 |
pointer = pointer; |
|
23 |
||
6649
7f78e8a6db69
Fix a bug with type declaration trying to resolve type being declared
unc0rr
parents:
6635
diff
changeset
|
24 |
float = float; |
6838 | 25 |
single = float; |
6516 | 26 |
double = float; |
27 |
real = float; |
|
6653 | 28 |
extended = float; |
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
29 |
GLfloat = float; |
6516 | 30 |
|
31 |
boolean = boolean; |
|
32 |
LongBool = boolean; |
|
33 |
||
34 |
string = string; |
|
35 |
shortstring = string; |
|
36 |
ansistring = string; |
|
6838 | 37 |
widechar = string; |
6516 | 38 |
|
39 |
char = char; |
|
6873 | 40 |
PChar = ^char; |
6926
6e832f8f4d8e
Make adler32 friendlier for pas2c - this should work the same (needs testing ofc)
nemo
parents:
6902
diff
changeset
|
41 |
PPChar = ^Pchar; |
6520 | 42 |
|
43 |
PByte = ^Byte; |
|
7616 | 44 |
PWord = ^Word; |
6520 | 45 |
PLongInt = ^LongInt; |
46 |
PLongWord = ^LongWord; |
|
47 |
PInteger = ^Integer; |
|
6663 | 48 |
|
49 |
Handle = integer; |
|
6838 | 50 |
|
6893 | 51 |
png_structp = pointer; |
52 |
png_size_t = integer; |
|
53 |
||
6512 | 54 |
var |
55 |
false, true: boolean; |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
56 |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
57 |
ord, Succ, Pred : function : integer; |
6838 | 58 |
inc, dec, Low, High, Lo, Hi : function : integer; |
59 |
||
6902
7d4e5ce73b98
Make pas2c even smarter. Now uIO.c compiles fine, and only 1 warning when compiled with -Wall (clang).
unc0rr
parents:
6898
diff
changeset
|
60 |
IOResult : integer; |
6853 | 61 |
exit, break, halt, continue : procedure; |
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
62 |
|
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
63 |
TextFile, File : Handle; |
6853 | 64 |
FileMode : integer; |
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
65 |
exitcode : integer; |
7151 | 66 |
stdout, stderr : Handle; |
6838 | 67 |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
68 |
sqrt, cos, sin: function : float; |
7062 | 69 |
pi : float; |
6838 | 70 |
|
71 |
sizeof : function : integer; |
|
72 |
||
7064 | 73 |
glGetString : function : pchar; |
74 |
||
75 |
glBegin, glBindTexture, glBlendFunc, glClear, glClearColor, |
|
76 |
glColor4ub, glColorMask, glColorPointer, glDeleteTextures, |
|
77 |
glDisable, glDisableClientState, glDrawArrays, glEnable, |
|
78 |
glEnableClientState, glEnd, glGenTextures, glGetIntegerv, |
|
79 |
glHint, glLineWidth, glLoadIdentity, glMatrixMode, glPopMatrix, |
|
80 |
glPushMatrix, glReadPixels, glRotatef, glScalef, glTexCoord2f, |
|
81 |
glTexCoordPointer, glTexImage2D, glTexParameterf, |
|
82 |
glTexParameteri, glTranslatef, glVertex2d, glVertexPointer, |
|
7065 | 83 |
glViewport, glext_LoadExtension, glDeleteRenderbuffersEXT, |
84 |
glDeleteFramebuffersEXT, glGenFramebuffersEXT, |
|
85 |
glGenRenderbuffersEXT, glBindFramebufferEXT, |
|
86 |
glBindRenderbufferEXT, glRenderbufferStorageEXT, |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
87 |
glFramebufferRenderbufferEXT, glFramebufferTexture2DEXT, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
88 |
glUniformMatrix4fv, glVertexAttribPointer, glCreateShader, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
89 |
glShaderSource, glCompileShader, glGetShaderiv, glGetShaderInfoLog, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
90 |
glCreateProgram, glAttachShader, glBindAttribLocation, glLinkProgram, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
91 |
glDeleteShader, glGetProgramiv, glGetProgramInfoLog, glUseProgram, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
92 |
glUniform1i, glGetUniformLocation, glEnableVertexAttribArray, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
93 |
glGetError, glDeleteProgram, glDeleteBuffers, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
94 |
glGenBuffers, glBufferData, glBindBuffer, glewInit, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
95 |
glUniform4f, glDisableVertexAttribArray : procedure; |
7064 | 96 |
|
97 |
GL_BGRA, GL_BLEND, GL_CLAMP_TO_EDGE, GL_COLOR_ARRAY, |
|
98 |
GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_DEPTH_COMPONENT, |
|
99 |
GL_DITHER, GL_EXTENSIONS, GL_FALSE, GL_FASTEST, GL_LINEAR, |
|
100 |
GL_LINE_LOOP, GL_LINES, GL_LINE_SMOOTH, GL_LINE_STRIP, |
|
101 |
GL_MAX_TEXTURE_SIZE, GL_MODELVIEW, GL_ONE_MINUS_SRC_ALPHA, |
|
102 |
GL_PERSPECTIVE_CORRECTION_HINT, GL_PROJECTION, GL_QUADS, |
|
103 |
GL_RENDERER, GL_RGBA, GL_RGBA8, GL_SRC_ALPHA, GL_TEXTURE_2D, |
|
104 |
GL_TEXTURE_COORD_ARRAY, GL_TEXTURE_MAG_FILTER, |
|
105 |
GL_TEXTURE_MIN_FILTER, GL_TEXTURE_PRIORITY, GL_TEXTURE_WRAP_S, |
|
106 |
GL_TEXTURE_WRAP_T, GL_TRIANGLE_FAN, GL_TRUE, GL_VENDOR, |
|
7065 | 107 |
GL_VERSION, GL_VERTEX_ARRAY, GLenum, GL_FRAMEBUFFER_EXT, |
108 |
GL_RENDERBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
109 |
GL_COLOR_ATTACHMENT0_EXT, GL_FLOAT, GL_UNSIGNED_BYTE, GL_COMPILE_STATUS, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
110 |
GL_INFO_LOG_LENGTH, GL_LINK_STATUS, GL_VERTEX_SHADER, GL_FRAGMENT_SHADER, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
111 |
GL_NO_ERROR, GL_ARRAY_BUFFER, GL_STATIC_DRAW, GLEW_OK, |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
112 |
GL_AUX_BUFFERS: integer; |
6838 | 113 |
|
114 |
TThreadId : function : integer; |
|
6854
873929cbd54b
Normalize RecordFields before conversion. Helps with namespaces problem.
unc0rr
parents:
6853
diff
changeset
|
115 |
|
7151 | 116 |
_strconcat, _strappend, _strprepend, _chrconcat : function : string; |
7054 | 117 |
_strcompare, _strncompare, _strcomparec : function : boolean; |
6893 | 118 |
|
119 |
png_structp, png_set_write_fn, png_get_io_ptr, |
|
120 |
png_get_libpng_ver, png_create_write_struct, |
|
121 |
png_create_info_struct, png_destroy_write_struct, |
|
122 |
png_write_row, png_set_ihdr, png_write_info, |
|
123 |
png_write_end : procedure; |
|
6894 | 124 |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
125 |
clear_filelist_hook, add_file_hook, idb_loader_hook, mainloop_hook, drawworld_hook : procedure; |
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
126 |
SDL_InitPatch : procedure; |
7066
12cc2bd84b0b
Make pas2c even more happier with uGears.c, allow assigning arrays in some cases
unc0rr
parents:
7065
diff
changeset
|
127 |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7616
diff
changeset
|
128 |