| 1 |
/* |
| 2 |
|
| 3 |
Boost Software License - Version 1.0 - August 17th,2003 |
| 4 |
|
| 5 |
Permission is hereby granted,free of charge,to any person or organization |
| 6 |
obtaining a copy of the software and accompanying documentation covered by |
| 7 |
this license(the "Software") to use,reproduce,display,distribute, |
| 8 |
execute,and transmit the Software,and to prepare derivative works of the |
| 9 |
Software,and to permit third-parties to whom the Software is furnished to |
| 10 |
do so,all subject to the following: |
| 11 |
|
| 12 |
The copyright notices in the Software and this entire statement,including |
| 13 |
the above license grant,this restriction and the following disclaimer, |
| 14 |
must be included in all copies of the Software,in whole or in part,and |
| 15 |
all derivative works of the Software,unless such copies or derivative |
| 16 |
works are solely in the form of machine-executable object code generated by |
| 17 |
a source language processor. |
| 18 |
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS",WITHOUT WARRANTY OF ANY KIND,EXPRESS OR |
| 20 |
IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 |
FITNESS FOR A PARTICULAR PURPOSE,TITLE AND NON-INFRINGEMENT. IN NO EVENT |
| 22 |
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE |
| 23 |
FOR ANY DAMAGES OR OTHER LIABILITY,WHETHER IN CONTRACT,TORT OR OTHERWISE, |
| 24 |
ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 25 |
DEALINGS IN THE SOFTWARE. |
| 26 |
|
| 27 |
*/ |
| 28 |
module derelict.sdl2.internal.gpu_dynload; |
| 29 |
|
| 30 |
import derelict.sdl2.config; |
| 31 |
static if(!staticGPU) { |
| 32 |
import derelict.util.loader, |
| 33 |
derelict.util.system; |
| 34 |
public import derelict.sdl2.internal.gpu_dynamic; |
| 35 |
|
| 36 |
class DerelictSDL2GPULoader : SharedLibLoader { |
| 37 |
this() |
| 38 |
{ |
| 39 |
super(libNames); |
| 40 |
} |
| 41 |
|
| 42 |
protected override void loadSymbols() |
| 43 |
{ |
| 44 |
bindFunc(cast(void**)&GPU_GetLinkedVersion, "GPU_GetLinkedVersion"); |
| 45 |
bindFunc(cast(void**)&GPU_GetInitWindow, "GPU_GetInitWindow"); |
| 46 |
bindFunc(cast(void**)&GPU_SetPreInitFlags, "GPU_SetPreInitFlags"); |
| 47 |
bindFunc(cast(void**)&GPU_GetPreInitFlags, "GPU_GetPreInitFlags"); |
| 48 |
bindFunc(cast(void**)&GPU_SetRequiredFeatures, "GPU_SetRequiredFeatures"); |
| 49 |
bindFunc(cast(void**)&GPU_GetRequiredFeatures, "GPU_GetRequiredFeatures"); |
| 50 |
bindFunc(cast(void**)&GPU_GetDefaultRendererOrder, "GPU_GetDefaultRendererOrder"); |
| 51 |
bindFunc(cast(void**)&GPU_GetRendererOrder, "GPU_GetRendererOrder"); |
| 52 |
bindFunc(cast(void**)&GPU_SetRendererOrder, "GPU_SetRendererOrder"); |
| 53 |
bindFunc(cast(void**)&GPU_Init, "GPU_Init"); |
| 54 |
bindFunc(cast(void**)&GPU_InitRenderer, "GPU_InitRenderer"); |
| 55 |
bindFunc(cast(void**)&GPU_InitRendererByID, "GPU_InitRendererByID"); |
| 56 |
bindFunc(cast(void**)&GPU_IsFeatureEnabled, "GPU_IsFeatureEnabled"); |
| 57 |
bindFunc(cast(void**)&GPU_CloseCurrentRenderer, "GPU_CloseCurrentRenderer"); |
| 58 |
bindFunc(cast(void**)&GPU_Quit, "GPU_Quit"); |
| 59 |
bindFunc(cast(void**)&GPU_SetDebugLevel, "GPU_SetDebugLevel"); |
| 60 |
bindFunc(cast(void**)&GPU_GetDebugLevel, "GPU_GetDebugLevel"); |
| 61 |
bindFunc(cast(void**)&GPU_LogInfo, "GPU_LogInfo"); |
| 62 |
bindFunc(cast(void**)&GPU_LogWarning, "GPU_LogWarning"); |
| 63 |
bindFunc(cast(void**)&GPU_LogError, "GPU_LogError"); |
| 64 |
bindFunc(cast(void**)&GPU_SetLogCallback, "GPU_SetLogCallback"); |
| 65 |
bindFunc(cast(void**)&GPU_PushErrorCode, "GPU_PushErrorCode"); |
| 66 |
bindFunc(cast(void**)&GPU_PopErrorCode, "GPU_PopErrorCode"); |
| 67 |
bindFunc(cast(void**)&GPU_GetErrorString, "GPU_GetErrorString"); |
| 68 |
bindFunc(cast(void**)&GPU_SetErrorQueueMax, "GPU_SetErrorQueueMax"); |
| 69 |
bindFunc(cast(void**)&GPU_MakeRendererID, "GPU_MakeRendererID"); |
| 70 |
bindFunc(cast(void**)&GPU_GetRendererID, "GPU_GetRendererID"); |
| 71 |
bindFunc(cast(void**)&GPU_GetNumRegisteredRenderers, "GPU_GetNumRegisteredRenderers"); |
| 72 |
bindFunc(cast(void**)&GPU_GetRegisteredRendererList, "GPU_GetRegisteredRendererList"); |
| 73 |
bindFunc(cast(void**)&GPU_RegisterRenderer, "GPU_RegisterRenderer"); |
| 74 |
bindFunc(cast(void**)&GPU_ReserveNextRendererEnum, "GPU_ReserveNextRendererEnum"); |
| 75 |
bindFunc(cast(void**)&GPU_GetNumActiveRenderers, "GPU_GetNumActiveRenderers"); |
| 76 |
bindFunc(cast(void**)&GPU_GetActiveRendererList, "GPU_GetActiveRendererList"); |
| 77 |
bindFunc(cast(void**)&GPU_GetCurrentRenderer, "GPU_GetCurrentRenderer"); |
| 78 |
bindFunc(cast(void**)&GPU_SetCurrentRenderer, "GPU_SetCurrentRenderer"); |
| 79 |
bindFunc(cast(void**)&GPU_GetRenderer, "GPU_GetRenderer"); |
| 80 |
bindFunc(cast(void**)&GPU_FreeRenderer, "GPU_FreeRenderer"); |
| 81 |
bindFunc(cast(void**)&GPU_ResetRendererState, "GPU_ResetRendererState"); |
| 82 |
bindFunc(cast(void**)&GPU_SetCoordinateMode, "GPU_SetCoordinateMode"); |
| 83 |
bindFunc(cast(void**)&GPU_GetCoordinateMode, "GPU_GetCoordinateMode"); |
| 84 |
bindFunc(cast(void**)&GPU_SetDefaultAnchor, "GPU_SetDefaultAnchor"); |
| 85 |
bindFunc(cast(void**)&GPU_GetDefaultAnchor, "GPU_GetDefaultAnchor"); |
| 86 |
bindFunc(cast(void**)&GPU_GetContextTarget, "GPU_GetContextTarget"); |
| 87 |
bindFunc(cast(void**)&GPU_GetWindowTarget, "GPU_GetWindowTarget"); |
| 88 |
bindFunc(cast(void**)&GPU_CreateTargetFromWindow, "GPU_CreateTargetFromWindow"); |
| 89 |
bindFunc(cast(void**)&GPU_MakeCurrent, "GPU_MakeCurrent"); |
| 90 |
bindFunc(cast(void**)&GPU_SetWindowResolution, "GPU_SetWindowResolution"); |
| 91 |
bindFunc(cast(void**)&GPU_SetFullscreen, "GPU_SetFullscreen"); |
| 92 |
bindFunc(cast(void**)&GPU_GetFullscreen, "GPU_GetFullscreen"); |
| 93 |
bindFunc(cast(void**)&GPU_SetShapeBlending, "GPU_SetShapeBlending"); |
| 94 |
bindFunc(cast(void**)&GPU_GetBlendModeFromPreset, "GPU_GetBlendModeFromPreset"); |
| 95 |
bindFunc(cast(void**)&GPU_SetShapeBlendFunction, "GPU_SetShapeBlendFunction"); |
| 96 |
bindFunc(cast(void**)&GPU_SetShapeBlendEquation, "GPU_SetShapeBlendEquation"); |
| 97 |
bindFunc(cast(void**)&GPU_SetShapeBlendMode, "GPU_SetShapeBlendMode"); |
| 98 |
bindFunc(cast(void**)&GPU_SetLineThickness, "GPU_SetLineThickness"); |
| 99 |
bindFunc(cast(void**)&GPU_GetLineThickness, "GPU_GetLineThickness"); |
| 100 |
bindFunc(cast(void**)&GPU_CreateAliasTarget, "GPU_CreateAliasTarget"); |
| 101 |
bindFunc(cast(void**)&GPU_LoadTarget, "GPU_LoadTarget"); |
| 102 |
bindFunc(cast(void**)&GPU_FreeTarget, "GPU_FreeTarget"); |
| 103 |
bindFunc(cast(void**)&GPU_SetVirtualResolution, "GPU_SetVirtualResolution"); |
| 104 |
bindFunc(cast(void**)&GPU_GetVirtualResolution, "GPU_GetVirtualResolution"); |
| 105 |
bindFunc(cast(void**)&GPU_GetVirtualCoords, "GPU_GetVirtualCoords"); |
| 106 |
bindFunc(cast(void**)&GPU_UnsetVirtualResolution, "GPU_UnsetVirtualResolution"); |
| 107 |
bindFunc(cast(void**)&GPU_MakeRect, "GPU_MakeRect"); |
| 108 |
bindFunc(cast(void**)&GPU_MakeColor, "GPU_MakeColor"); |
| 109 |
bindFunc(cast(void**)&GPU_SetViewport, "GPU_SetViewport"); |
| 110 |
bindFunc(cast(void**)&GPU_UnsetViewport, "GPU_UnsetViewport"); |
| 111 |
bindFunc(cast(void**)&GPU_GetDefaultCamera, "GPU_GetDefaultCamera"); |
| 112 |
bindFunc(cast(void**)&GPU_GetCamera, "GPU_GetCamera"); |
| 113 |
bindFunc(cast(void**)&GPU_SetCamera, "GPU_SetCamera"); |
| 114 |
bindFunc(cast(void**)&GPU_EnableCamera, "GPU_EnableCamera"); |
| 115 |
bindFunc(cast(void**)&GPU_IsCameraEnabled, "GPU_IsCameraEnabled"); |
| 116 |
bindFunc(cast(void**)&GPU_GetPixel, "GPU_GetPixel"); |
| 117 |
bindFunc(cast(void**)&GPU_SetClipRect, "GPU_SetClipRect"); |
| 118 |
bindFunc(cast(void**)&GPU_SetClip, "GPU_SetClip"); |
| 119 |
bindFunc(cast(void**)&GPU_UnsetClip, "GPU_UnsetClip"); |
| 120 |
bindFunc(cast(void**)&GPU_IntersectRect, "GPU_IntersectRect"); |
| 121 |
bindFunc(cast(void**)&GPU_IntersectClipRect, "GPU_IntersectClipRect"); |
| 122 |
bindFunc(cast(void**)&GPU_SetTargetColor, "GPU_SetTargetColor"); |
| 123 |
bindFunc(cast(void**)&GPU_SetTargetRGB, "GPU_SetTargetRGB"); |
| 124 |
bindFunc(cast(void**)&GPU_SetTargetRGBA, "GPU_SetTargetRGBA"); |
| 125 |
bindFunc(cast(void**)&GPU_UnsetTargetColor, "GPU_UnsetTargetColor"); |
| 126 |
bindFunc(cast(void**)&GPU_LoadSurface, "GPU_LoadSurface"); |
| 127 |
bindFunc(cast(void**)&GPU_LoadSurface_RW, "GPU_LoadSurface_RW"); |
| 128 |
bindFunc(cast(void**)&GPU_SaveSurface, "GPU_SaveSurface"); |
| 129 |
bindFunc(cast(void**)&GPU_SaveSurface_RW, "GPU_SaveSurface_RW"); |
| 130 |
bindFunc(cast(void**)&GPU_CreateImage, "GPU_CreateImage"); |
| 131 |
bindFunc(cast(void**)&GPU_CreateImageUsingTexture, "GPU_CreateImageUsingTexture"); |
| 132 |
bindFunc(cast(void**)&GPU_LoadImage, "GPU_LoadImage"); |
| 133 |
bindFunc(cast(void**)&GPU_LoadImage_RW, "GPU_LoadImage_RW"); |
| 134 |
bindFunc(cast(void**)&GPU_CreateAliasImage, "GPU_CreateAliasImage"); |
| 135 |
bindFunc(cast(void**)&GPU_CopyImage, "GPU_CopyImage"); |
| 136 |
bindFunc(cast(void**)&GPU_FreeImage, "GPU_FreeImage"); |
| 137 |
bindFunc(cast(void**)&GPU_SetImageVirtualResolution, "GPU_SetImageVirtualResolution"); |
| 138 |
bindFunc(cast(void**)&GPU_UnsetImageVirtualResolution, "GPU_UnsetImageVirtualResolution"); |
| 139 |
bindFunc(cast(void**)&GPU_UpdateImage, "GPU_UpdateImage"); |
| 140 |
bindFunc(cast(void**)&GPU_UpdateImageBytes, "GPU_UpdateImageBytes"); |
| 141 |
bindFunc(cast(void**)&GPU_ReplaceImage, "GPU_ReplaceImage"); |
| 142 |
bindFunc(cast(void**)&GPU_SaveImage, "GPU_SaveImage"); |
| 143 |
bindFunc(cast(void**)&GPU_SaveImage_RW, "GPU_SaveImage_RW"); |
| 144 |
bindFunc(cast(void**)&GPU_GenerateMipmaps, "GPU_GenerateMipmaps"); |
| 145 |
bindFunc(cast(void**)&GPU_SetColor, "GPU_SetColor"); |
| 146 |
bindFunc(cast(void**)&GPU_SetRGB, "GPU_SetRGB"); |
| 147 |
bindFunc(cast(void**)&GPU_SetRGBA, "GPU_SetRGBA"); |
| 148 |
bindFunc(cast(void**)&GPU_GetBlending, "GPU_GetBlending"); |
| 149 |
bindFunc(cast(void**)&GPU_SetBlending, "GPU_SetBlending"); |
| 150 |
bindFunc(cast(void**)&GPU_SetBlendFunction, "GPU_SetBlendFunction"); |
| 151 |
bindFunc(cast(void**)&GPU_SetBlendEquation, "GPU_SetBlendEquation"); |
| 152 |
bindFunc(cast(void**)&GPU_SetBlendMode, "GPU_SetBlendMode"); |
| 153 |
bindFunc(cast(void**)&GPU_SetImageFilter, "GPU_SetImageFilter"); |
| 154 |
bindFunc(cast(void**)&GPU_SetAnchor, "GPU_SetAnchor"); |
| 155 |
bindFunc(cast(void**)&GPU_GetAnchor, "GPU_GetAnchor"); |
| 156 |
bindFunc(cast(void**)&GPU_GetSnapMode, "GPU_GetSnapMode"); |
| 157 |
bindFunc(cast(void**)&GPU_SetSnapMode, "GPU_SetSnapMode"); |
| 158 |
bindFunc(cast(void**)&GPU_SetWrapMode, "GPU_SetWrapMode"); |
| 159 |
bindFunc(cast(void**)&GPU_CopyImageFromSurface, "GPU_CopyImageFromSurface"); |
| 160 |
bindFunc(cast(void**)&GPU_CopyImageFromTarget, "GPU_CopyImageFromTarget"); |
| 161 |
bindFunc(cast(void**)&GPU_CopySurfaceFromTarget, "GPU_CopySurfaceFromTarget"); |
| 162 |
bindFunc(cast(void**)&GPU_CopySurfaceFromImage, "GPU_CopySurfaceFromImage"); |
| 163 |
bindFunc(cast(void**)&GPU_VectorLength, "GPU_VectorLength"); |
| 164 |
bindFunc(cast(void**)&GPU_VectorNormalize, "GPU_VectorNormalize"); |
| 165 |
bindFunc(cast(void**)&GPU_VectorDot, "GPU_VectorDot"); |
| 166 |
bindFunc(cast(void**)&GPU_VectorCross, "GPU_VectorCross"); |
| 167 |
bindFunc(cast(void**)&GPU_VectorCopy, "GPU_VectorCopy"); |
| 168 |
bindFunc(cast(void**)&GPU_VectorApplyMatrix, "GPU_VectorApplyMatrix"); |
| 169 |
bindFunc(cast(void**)&GPU_MatrixCopy, "GPU_MatrixCopy"); |
| 170 |
bindFunc(cast(void**)&GPU_MatrixIdentity, "GPU_MatrixIdentity"); |
| 171 |
bindFunc(cast(void**)&GPU_MatrixOrtho, "GPU_MatrixOrtho"); |
| 172 |
bindFunc(cast(void**)&GPU_MatrixFrustum, "GPU_MatrixFrustum"); |
| 173 |
bindFunc(cast(void**)&GPU_MatrixPerspective, "GPU_MatrixPerspective"); |
| 174 |
bindFunc(cast(void**)&GPU_MatrixLookAt, "GPU_MatrixLookAt"); |
| 175 |
bindFunc(cast(void**)&GPU_MatrixTranslate, "GPU_MatrixTranslate"); |
| 176 |
bindFunc(cast(void**)&GPU_MatrixScale, "GPU_MatrixScale"); |
| 177 |
bindFunc(cast(void**)&GPU_MatrixRotate, "GPU_MatrixRotate"); |
| 178 |
bindFunc(cast(void**)&GPU_MatrixMultiply, "GPU_MatrixMultiply"); |
| 179 |
bindFunc(cast(void**)&GPU_MultiplyAndAssign, "GPU_MultiplyAndAssign"); |
| 180 |
bindFunc(cast(void**)&GPU_GetMatrixString, "GPU_GetMatrixString"); |
| 181 |
bindFunc(cast(void**)&GPU_GetCurrentMatrix, "GPU_GetCurrentMatrix"); |
| 182 |
bindFunc(cast(void**)&GPU_GetModelView, "GPU_GetModelView"); |
| 183 |
bindFunc(cast(void**)&GPU_GetProjection, "GPU_GetProjection"); |
| 184 |
bindFunc(cast(void**)&GPU_GetModelViewProjection, "GPU_GetModelViewProjection"); |
| 185 |
bindFunc(cast(void**)&GPU_MatrixMode, "GPU_MatrixMode"); |
| 186 |
bindFunc(cast(void**)&GPU_PushMatrix, "GPU_PushMatrix"); |
| 187 |
bindFunc(cast(void**)&GPU_PopMatrix, "GPU_PopMatrix"); |
| 188 |
bindFunc(cast(void**)&GPU_LoadIdentity, "GPU_LoadIdentity"); |
| 189 |
bindFunc(cast(void**)&GPU_Ortho, "GPU_Ortho"); |
| 190 |
bindFunc(cast(void**)&GPU_Frustum, "GPU_Frustum"); |
| 191 |
bindFunc(cast(void**)&GPU_Translate, "GPU_Translate"); |
| 192 |
bindFunc(cast(void**)&GPU_Scale, "GPU_Scale"); |
| 193 |
bindFunc(cast(void**)&GPU_Rotate, "GPU_Rotate"); |
| 194 |
bindFunc(cast(void**)&GPU_MultMatrix, "GPU_MultMatrix"); |
| 195 |
bindFunc(cast(void**)&GPU_Clear, "GPU_Clear"); |
| 196 |
bindFunc(cast(void**)&GPU_ClearColor, "GPU_ClearColor"); |
| 197 |
bindFunc(cast(void**)&GPU_ClearRGB, "GPU_ClearRGB"); |
| 198 |
bindFunc(cast(void**)&GPU_ClearRGBA, "GPU_ClearRGBA"); |
| 199 |
bindFunc(cast(void**)&GPU_Blit, "GPU_Blit"); |
| 200 |
bindFunc(cast(void**)&GPU_BlitRotate, "GPU_BlitRotate"); |
| 201 |
bindFunc(cast(void**)&GPU_BlitScale, "GPU_BlitScale"); |
| 202 |
bindFunc(cast(void**)&GPU_BlitTransform, "GPU_BlitTransform"); |
| 203 |
bindFunc(cast(void**)&GPU_BlitTransformX, "GPU_BlitTransformX"); |
| 204 |
bindFunc(cast(void**)&GPU_BlitRect, "GPU_BlitRect"); |
| 205 |
bindFunc(cast(void**)&GPU_BlitRectX, "GPU_BlitRectX"); |
| 206 |
bindFunc(cast(void**)&GPU_TriangleBatch, "GPU_TriangleBatch"); |
| 207 |
bindFunc(cast(void**)&GPU_TriangleBatchX, "GPU_TriangleBatchX"); |
| 208 |
bindFunc(cast(void**)&GPU_FlushBlitBuffer, "GPU_FlushBlitBuffer"); |
| 209 |
bindFunc(cast(void**)&GPU_Flip, "GPU_Flip"); |
| 210 |
bindFunc(cast(void**)&GPU_Pixel, "GPU_Pixel"); |
| 211 |
bindFunc(cast(void**)&GPU_Line, "GPU_Line"); |
| 212 |
bindFunc(cast(void**)&GPU_Arc, "GPU_Arc"); |
| 213 |
bindFunc(cast(void**)&GPU_ArcFilled, "GPU_ArcFilled"); |
| 214 |
bindFunc(cast(void**)&GPU_Circle, "GPU_Circle"); |
| 215 |
bindFunc(cast(void**)&GPU_CircleFilled, "GPU_CircleFilled"); |
| 216 |
bindFunc(cast(void**)&GPU_Ellipse, "GPU_Ellipse"); |
| 217 |
bindFunc(cast(void**)&GPU_EllipseFilled, "GPU_EllipseFilled"); |
| 218 |
bindFunc(cast(void**)&GPU_Sector, "GPU_Sector"); |
| 219 |
bindFunc(cast(void**)&GPU_SectorFilled, "GPU_SectorFilled"); |
| 220 |
bindFunc(cast(void**)&GPU_Tri, "GPU_Tri"); |
| 221 |
bindFunc(cast(void**)&GPU_TriFilled, "GPU_TriFilled"); |
| 222 |
bindFunc(cast(void**)&GPU_Rectangle, "GPU_Rectangle"); |
| 223 |
bindFunc(cast(void**)&GPU_Rectangle2, "GPU_Rectangle2"); |
| 224 |
bindFunc(cast(void**)&GPU_RectangleFilled, "GPU_RectangleFilled"); |
| 225 |
bindFunc(cast(void**)&GPU_RectangleFilled2, "GPU_RectangleFilled2"); |
| 226 |
bindFunc(cast(void**)&GPU_RectangleRound, "GPU_RectangleRound"); |
| 227 |
bindFunc(cast(void**)&GPU_RectangleRound2, "GPU_RectangleRound2"); |
| 228 |
bindFunc(cast(void**)&GPU_RectangleRoundFilled, "GPU_RectangleRoundFilled"); |
| 229 |
bindFunc(cast(void**)&GPU_RectangleRoundFilled2, "GPU_RectangleRoundFilled2"); |
| 230 |
bindFunc(cast(void**)&GPU_Polygon, "GPU_Polygon"); |
| 231 |
bindFunc(cast(void**)&GPU_PolygonFilled, "GPU_PolygonFilled"); |
| 232 |
bindFunc(cast(void**)&GPU_CreateShaderProgram, "GPU_CreateShaderProgram"); |
| 233 |
bindFunc(cast(void**)&GPU_FreeShaderProgram, "GPU_FreeShaderProgram"); |
| 234 |
bindFunc(cast(void**)&GPU_CompileShader_RW, "GPU_CompileShader_RW"); |
| 235 |
bindFunc(cast(void**)&GPU_CompileShader, "GPU_CompileShader"); |
| 236 |
bindFunc(cast(void**)&GPU_LoadShader, "GPU_LoadShader"); |
| 237 |
bindFunc(cast(void**)&GPU_LinkShaders, "GPU_LinkShaders"); |
| 238 |
bindFunc(cast(void**)&GPU_LinkManyShaders, "GPU_LinkManyShaders"); |
| 239 |
bindFunc(cast(void**)&GPU_FreeShader, "GPU_FreeShader"); |
| 240 |
bindFunc(cast(void**)&GPU_AttachShader, "GPU_AttachShader"); |
| 241 |
bindFunc(cast(void**)&GPU_DetachShader, "GPU_DetachShader"); |
| 242 |
bindFunc(cast(void**)&GPU_LinkShaderProgram, "GPU_LinkShaderProgram"); |
| 243 |
bindFunc(cast(void**)&GPU_GetCurrentShaderProgram, "GPU_GetCurrentShaderProgram"); |
| 244 |
bindFunc(cast(void**)&GPU_IsDefaultShaderProgram, "GPU_IsDefaultShaderProgram"); |
| 245 |
bindFunc(cast(void**)&GPU_ActivateShaderProgram, "GPU_ActivateShaderProgram"); |
| 246 |
bindFunc(cast(void**)&GPU_DeactivateShaderProgram, "GPU_DeactivateShaderProgram"); |
| 247 |
bindFunc(cast(void**)&GPU_GetShaderMessage, "GPU_GetShaderMessage"); |
| 248 |
bindFunc(cast(void**)&GPU_GetAttributeLocation, "GPU_GetAttributeLocation"); |
| 249 |
bindFunc(cast(void**)&GPU_MakeAttributeFormat, "GPU_MakeAttributeFormat"); |
| 250 |
bindFunc(cast(void**)&GPU_MakeAttribute, "GPU_MakeAttribute"); |
| 251 |
bindFunc(cast(void**)&GPU_GetUniformLocation, "GPU_GetUniformLocation"); |
| 252 |
bindFunc(cast(void**)&GPU_LoadShaderBlock, "GPU_LoadShaderBlock"); |
| 253 |
bindFunc(cast(void**)&GPU_SetShaderBlock, "GPU_SetShaderBlock"); |
| 254 |
bindFunc(cast(void**)&GPU_GetShaderBlock, "GPU_GetShaderBlock"); |
| 255 |
bindFunc(cast(void**)&GPU_SetShaderImage, "GPU_SetShaderImage"); |
| 256 |
bindFunc(cast(void**)&GPU_GetUniformiv, "GPU_GetUniformiv"); |
| 257 |
bindFunc(cast(void**)&GPU_SetUniformi, "GPU_SetUniformi"); |
| 258 |
bindFunc(cast(void**)&GPU_SetUniformiv, "GPU_SetUniformiv"); |
| 259 |
bindFunc(cast(void**)&GPU_GetUniformuiv, "GPU_GetUniformuiv"); |
| 260 |
bindFunc(cast(void**)&GPU_SetUniformui, "GPU_SetUniformui"); |
| 261 |
bindFunc(cast(void**)&GPU_SetUniformuiv, "GPU_SetUniformuiv"); |
| 262 |
bindFunc(cast(void**)&GPU_GetUniformfv, "GPU_GetUniformfv"); |
| 263 |
bindFunc(cast(void**)&GPU_SetUniformf, "GPU_SetUniformf"); |
| 264 |
bindFunc(cast(void**)&GPU_SetUniformfv, "GPU_SetUniformfv"); |
| 265 |
bindFunc(cast(void**)&GPU_GetUniformMatrixfv, "GPU_GetUniformMatrixfv"); |
| 266 |
bindFunc(cast(void**)&GPU_SetUniformMatrixfv, "GPU_SetUniformMatrixfv"); |
| 267 |
bindFunc(cast(void**)&GPU_SetAttributef, "GPU_SetAttributef"); |
| 268 |
bindFunc(cast(void**)&GPU_SetAttributei, "GPU_SetAttributei"); |
| 269 |
bindFunc(cast(void**)&GPU_SetAttributeui, "GPU_SetAttributeui"); |
| 270 |
bindFunc(cast(void**)&GPU_SetAttributefv, "GPU_SetAttributefv"); |
| 271 |
bindFunc(cast(void**)&GPU_SetAttributeiv, "GPU_SetAttributeiv"); |
| 272 |
bindFunc(cast(void**)&GPU_SetAttributeuiv, "GPU_SetAttributeuiv"); |
| 273 |
bindFunc(cast(void**)&GPU_SetAttributeSource, "GPU_SetAttributeSource"); |
| 274 |
} |
| 275 |
} |
| 276 |
|
| 277 |
__gshared DerelictSDL2GPULoader DerelictSDL2GPU; |
| 278 |
|
| 279 |
shared static this() |
| 280 |
{ |
| 281 |
DerelictSDL2GPU = new DerelictSDL2GPULoader(); |
| 282 |
} |
| 283 |
|
| 284 |
private: |
| 285 |
static if(Derelict_OS_Windows) |
| 286 |
enum libNames = "SDL2_gpu.dll"; |
| 287 |
else static if(Derelict_OS_Mac) |
| 288 |
enum libNames = "/usr/local/lib/libSDL2_gpu.dylib,../Frameworks/SDL2_gpu.framework/SDL2_gpu,/Library/Frameworks/SDL2_gpu.framework/SDL2_gpu,/System/Library/Frameworks/SDL2_gpu.framework/SDL2_gpu"; |
| 289 |
else static if(Derelict_OS_Posix) |
| 290 |
enum libNames = "libSDL2_gpu.so"; |
| 291 |
else |
| 292 |
static assert(0,"Need to implement SDL2_gpu libNames for this operating system."); |
| 293 |
} |