Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
planetis-m committed Oct 24, 2024
1 parent ec18a6d commit 48ddb6b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/raylib.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const
# Taken from raylib/src/config.h
MaxShaderLocations* = 32 ## Maximum number of shader locations supported
MaxMaterialMaps* = 12 ## Maximum number of shader maps supported
MaxMeshVertexBuffers* = 7 ## Maximum vertex buffers (VBO) per mesh
MaxMeshVertexBuffers* = 9 ## Maximum vertex buffers (VBO) per mesh

type
ConfigFlags* {.size: sizeof(int32).} = enum ## System/Window config flags
Expand Down Expand Up @@ -2439,7 +2439,6 @@ proc exportWaveAsCode*(wave: Wave, fileName: string): bool =
## Export wave sample data to code (.h), returns true on success
exportWaveAsCodeImpl(wave, fileName.cstring)


type
RaylibError* = object of CatchableError

Expand Down
4 changes: 1 addition & 3 deletions src/rlgl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ proc getShaderLocsDefault*(): ShaderLocsPtr {.importc: "rlGetShaderLocsDefault",
## Get default shader locations
proc loadRenderBatch*(numBuffers: int32, bufferElements: int32): RenderBatch {.importc: "rlLoadRenderBatch", sideEffect.}
## Load a render batch system
proc unloadRenderBatch*(batch: RenderBatch) {.importc: "rlUnloadRenderBatch", sideEffect.}
## Unload render batch system
proc unloadRenderBatch(batch: RenderBatch) {.importc: "rlUnloadRenderBatch", sideEffect.}
proc drawRenderBatch*(batch: var RenderBatch) {.importc: "rlDrawRenderBatch", sideEffect.}
## Draw render batch data (Update->Draw->Reset)
proc setRenderBatchActive*(batch: var RenderBatch) {.importc: "rlSetRenderBatchActive", sideEffect.}
Expand Down Expand Up @@ -548,7 +547,6 @@ proc getLocationAttrib*(shaderId: uint32, attribName: string): ShaderLocation =
## Get shader location attribute
getLocationAttribImpl(shaderId, attribName.cstring)


proc `=destroy`*(x: RenderBatch) =
unloadRenderBatch(x)
proc `=dup`*(source: RenderBatch): RenderBatch {.error.}
Expand Down
1 change: 0 additions & 1 deletion wrapper/builder.nim
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,4 @@ proc genBindings*(b: var Builder; ctx: ApiContext;
for fnc in ctx.funcsToWrap:
generateWrappedProc(b, fnc)
b.addNL()
b.addNL()
b.addRaw moduleEnd
4 changes: 4 additions & 0 deletions wrapper/config/rlgl.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ rlSetBlendFactorsSeparate/glEqAlpha: BlendFuncOrEq
rlVertexBuffer/elementCount
rlRenderBatch/bufferCount

[ PrivateSymbols ]

rlUnloadRenderBatch

[ ArrayTypes ]

rlVertexBuffer/vertices
Expand Down
2 changes: 1 addition & 1 deletion wrapper/snippets/raylib_header.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ const
# Taken from raylib/src/config.h
MaxShaderLocations* = 32 ## Maximum number of shader locations supported
MaxMaterialMaps* = 12 ## Maximum number of shader maps supported
MaxMeshVertexBuffers* = 7 ## Maximum vertex buffers (VBO) per mesh
MaxMeshVertexBuffers* = 9 ## Maximum vertex buffers (VBO) per mesh

0 comments on commit 48ddb6b

Please sign in to comment.