Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Jan 7, 2015
1 parent 535aaaa commit dd63cf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/csfml_audio.nim
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ include csfml_audio_gen


proc newSound*(buffer: SoundBuffer): Sound =
## *Returns:* A new Sound with this buffer
## *Returns*: A new Sound with this buffer
result = newSound()
if result == nil: return nil
result.buffer = buffer
2 changes: 2 additions & 0 deletions src/csfml_graphics.nim
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ proc color*(red, green, blue: int, alpha: int = 255): Color =
## - ``green``: Green component (in the range [0, 255])
## - ``blue``: Blue component (in the range [0, 255])
## - ``alpha``: Alpha (opacity) component (in the range [0, 255])
##
## *Returns*: Color from its 4 RGBA components
result.r = uint8 red
result.g = uint8 green
Expand Down Expand Up @@ -178,6 +179,7 @@ proc matrixGL*(transform: Transform): array[0..15, cfloat] =
##
## *Arguments*:
## - ``transform``: Transform object
##
## *Returns*: 16-element array
transform.getMatrix(addr(result[0]))

Expand Down
3 changes: 3 additions & 0 deletions src/csfml_window.nim
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ proc contextSettings*(depth: cint = 0, stencil: cint = 0, antialiasing: cint = 0
## ``antialiasing``: Antialiasing level
## ``major``: Major number of the context version
## ``minor``: Minor number of the context version
##
## *Returns*: ContextSettings with these members
result.depthBits = depth
result.stencilBits = stencil
Expand All @@ -74,6 +75,7 @@ proc videoMode*(modeWidth, modeHeight: cint, bitsPerPixel: cint = 32): VideoMode
## - ``modeWidth``: Width in pixels
## - ``modeHeight``: Height in pixels
## - ``modeBitsPerPixel``: Pixel depths in bits per pixel
##
## *Returns*: a VideoMode with these members
result.width = modeWidth
result.height = modeHeight
Expand Down Expand Up @@ -132,6 +134,7 @@ proc newWindow*(mode: VideoMode, title: string, style: BitMaskU32 = WindowStyle.
## - ``title``: Title of the window (normal UTF-8 string)
## - ``style``: Window style
## - ``settings``: Additional settings for the underlying OpenGL context
##
## *Returns:* A new Window object
var t = utf8to32(title)
newWindow_U32(mode, addr(t[0]), style, settings)

0 comments on commit dd63cf7

Please sign in to comment.