| 104 | | private const char[] Funcs = |
|---|
| 105 | | " |
|---|
| 106 | | typedef ILboolean function(ILenum Mode) pfilutDisable; |
|---|
| 107 | | typedef ILboolean function(ILenum Mode) pfilutEnable; |
|---|
| 108 | | typedef ILboolean function(ILenum Mode) pfilutGetBoolean; |
|---|
| 109 | | typedef ILvoid function(ILenum Mode, ILboolean *Param) pfilutGetBooleanv; |
|---|
| 110 | | typedef ILint function(ILenum Mode) pfilutGetInteger; |
|---|
| 111 | | typedef ILvoid function(ILenum Mode, ILint *Param) pfilutGetIntegerv; |
|---|
| 112 | | typedef ILstring function(ILenum StringName) pfilutGetString; |
|---|
| 113 | | typedef ILvoid function() pfilutInit; |
|---|
| 114 | | typedef ILboolean function(ILenum Mode) pfilutIsDisabled; |
|---|
| 115 | | typedef ILboolean function(ILenum Mode) pfilutIsEnabled; |
|---|
| 116 | | typedef ILvoid function() pfilutPopAttrib; |
|---|
| 117 | | typedef ILvoid function(ILuint Bits) pfilutPushAttrib; |
|---|
| 118 | | typedef ILvoid function(ILenum Mode, ILint Param) pfilutSetInteger; |
|---|
| 119 | | typedef ILboolean function(ILenum Renderer) pfilutRenderer; |
|---|
| 120 | | typedef GLuint function() pfilutGLBindTexImage; |
|---|
| 121 | | typedef GLuint function() pfilutGLBindMipmaps; |
|---|
| 122 | | typedef ILboolean function() pfilutGLBuildMipmaps; |
|---|
| 123 | | typedef GLuint function( ILstring FileName) pfilutGLLoadImage; |
|---|
| 124 | | typedef ILboolean function() pfilutGLScreen; |
|---|
| 125 | | typedef ILboolean function() pfilutGLScreenie; |
|---|
| 126 | | typedef ILboolean function( ILstring FileName, GLuint TexID) pfilutGLSaveImage; |
|---|
| 127 | | typedef ILboolean function(GLuint TexID) pfilutGLSetTex; |
|---|
| 128 | | typedef ILboolean function(GLuint Level) pfilutGLTexImage; |
|---|
| 129 | | "; |
|---|
| 130 | | |
|---|
| 131 | | version(Windows) |
|---|
| 132 | | { |
|---|
| 133 | | extern(Windows): mixin(Funcs); |
|---|
| 134 | | } |
|---|
| 135 | | else |
|---|
| 136 | | { |
|---|
| 137 | | extern(C): mixin(Funcs); |
|---|
| 138 | | } |
|---|
| | 104 | extern(System): |
|---|
| | 105 | |
|---|
| | 106 | typedef ILboolean function(ILenum Mode) pfilutDisable; |
|---|
| | 107 | typedef ILboolean function(ILenum Mode) pfilutEnable; |
|---|
| | 108 | typedef ILboolean function(ILenum Mode) pfilutGetBoolean; |
|---|
| | 109 | typedef ILvoid function(ILenum Mode, ILboolean *Param) pfilutGetBooleanv; |
|---|
| | 110 | typedef ILint function(ILenum Mode) pfilutGetInteger; |
|---|
| | 111 | typedef ILvoid function(ILenum Mode, ILint *Param) pfilutGetIntegerv; |
|---|
| | 112 | typedef ILstring function(ILenum StringName) pfilutGetString; |
|---|
| | 113 | typedef ILvoid function() pfilutInit; |
|---|
| | 114 | typedef ILboolean function(ILenum Mode) pfilutIsDisabled; |
|---|
| | 115 | typedef ILboolean function(ILenum Mode) pfilutIsEnabled; |
|---|
| | 116 | typedef ILvoid function() pfilutPopAttrib; |
|---|
| | 117 | typedef ILvoid function(ILuint Bits) pfilutPushAttrib; |
|---|
| | 118 | typedef ILvoid function(ILenum Mode, ILint Param) pfilutSetInteger; |
|---|
| | 119 | typedef ILboolean function(ILenum Renderer) pfilutRenderer; |
|---|
| | 120 | typedef GLuint function() pfilutGLBindTexImage; |
|---|
| | 121 | typedef GLuint function() pfilutGLBindMipmaps; |
|---|
| | 122 | typedef ILboolean function() pfilutGLBuildMipmaps; |
|---|
| | 123 | typedef GLuint function( ILstring FileName) pfilutGLLoadImage; |
|---|
| | 124 | typedef ILboolean function() pfilutGLScreen; |
|---|
| | 125 | typedef ILboolean function() pfilutGLScreenie; |
|---|
| | 126 | typedef ILboolean function( ILstring FileName, GLuint TexID) pfilutGLSaveImage; |
|---|
| | 127 | typedef ILboolean function(GLuint TexID) pfilutGLSetTex; |
|---|
| | 128 | typedef ILboolean function(GLuint Level) pfilutGLTexImage; |
|---|