- Timestamp:
- 02/07/08 16:12:01 (10 months ago)
- Location:
- lang/d/koke
- Files:
-
- 1 added
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/d/koke/boot.d
r6329 r6331 120 120 } 121 121 122 123 version (Darwin) 124 { 125 extern (C) int _d_run_Dmain(int argc, char* argv[]); 126 extern (C) int SDL_main(int argc, char* argv[]) { 127 return _d_run_Dmain(argc, argv); 128 } 129 } -
lang/d/koke/config.d
r6329 r6331 105 105 if(!isdigit(c)) throw new Error(format("not digit value ... '%s' -> '%s'", key, val)); 106 106 } 107 return atoi(val);107 return cast(int)atoi(val); 108 108 } 109 109 float checkFloat(char[] key, char[] val) … … 123 123 default: throw new Error(format("not boolean value ... '%s' -> '%s'", key, val)); 124 124 } 125 return false; 125 126 } 126 127 } -
lang/d/koke/hell2.d
r6329 r6331 481 481 Uint8 Hell_isPushMouse() 482 482 { 483 return g_pressMouseButton ^ (g_pressMouseButton & g_pressMouseButtonPrev);483 return cast(Uint8)(g_pressMouseButton ^ (g_pressMouseButton & g_pressMouseButtonPrev)); 484 484 } 485 485 … … 524 524 return false; 525 525 } 526 return false; 526 527 } 527 528 … … 546 547 return false; 547 548 } 549 return false; 548 550 } 549 551 … … 706 708 707 709 glPushMatrix(); 708 glColor4ub( r, g, b,a);710 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)a); 709 711 glTranslatef(x, y, 0); 710 712 if(rot != 0) … … 760 762 Texture.unbind(); 761 763 glPushMatrix(); 762 glColor4ub( r, g, b,a);764 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)a); 763 765 764 766 glLineWidth(width); … … 790 792 Texture.unbind(); 791 793 glPushMatrix(); 792 glColor4ub( r, g, b,a);794 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)a); 793 795 glTranslatef(x, y, 0); 794 796 if(rot != 0) glRotatef(rot, 0, 0, -1); … … 832 834 Texture.unbind(); 833 835 glPushMatrix(); 834 glColor4ub( r, g, b,a);836 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)a); 835 837 if(width <= 0) 836 838 { … … 898 900 899 901 glPushMatrix(); 900 glColor4ub( r, g, b,alpha);902 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)alpha); 901 903 //glColor4d(cast(float)r / 255.0 , cast(float)g / 255.0 , cast(float)b / 255.0 , cast(float)alpha / 255.0); 902 904 glTranslatef(x, y, 0); … … 955 957 Texture tex = g_fontTexture; 956 958 tex.bind(); 957 glColor4ub( r, g, b,a);959 glColor4ub(cast(GLubyte)r, cast(GLubyte)g, cast(GLubyte)b, cast(GLubyte)a); 958 960 959 961 float u = WIDTH / cast(float)tex._width; // テクスチャ座標の幅 -
lang/d/koke/opengl.d
r6329 r6331 1 1 2 version (Win 32) {2 version (Windows) { 3 3 private import std.c.windows.windows; 4 extern(Windows):5 4 } 6 else { 7 extern(C): 8 } 9 10 //extern(System): 5 6 extern(System): 11 7 12 8 alias uint GLenum; … … 1120 1116 1121 1117 void /*APIENTRY*/glAccum (GLenum op, GLfloat value); 1122 void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf ref );1118 void /*APIENTRY*/glAlphaFunc (GLenum func, GLclampf ref_); 1123 1119 GLboolean /*APIENTRY*/glAreTexturesResident (GLsizei n, GLuint *textures, GLboolean *residences); 1124 1120 void /*APIENTRY*/glArrayElement (GLint i); … … 1373 1369 void /*APIENTRY*/glSelectBuffer (GLsizei size, GLuint *buffer); 1374 1370 void /*APIENTRY*/glShadeModel (GLenum mode); 1375 void /*APIENTRY*/glStencilFunc (GLenum func, GLint ref , GLuint mask);1371 void /*APIENTRY*/glStencilFunc (GLenum func, GLint ref_, GLuint mask); 1376 1372 void /*APIENTRY*/glStencilMask (GLuint mask); 1377 1373 void /*APIENTRY*/glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); … … 1489 1485 (GLenum target, GLenum pname, GLfloat *params); 1490 1486 1491 //import openglu; -
lang/d/koke/openglu.d
r6329 r6331 1 1 import opengl; 2 2 3 version (Win32) { 4 extern(Windows): 5 } 6 else { 7 extern(C): 8 } 3 extern(System): 9 4 10 5 GLubyte* gluErrorString (
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)