Permalink
Browse files

updated docs for 0.1.2-10

  • Loading branch information...
1 parent 341c2f0 commit 40938dd0a7628b986c0bdc30364c08b48a072a2d @iamgreaser committed Nov 25, 2013
Showing with 17 additions and 1 deletion.
  1. +1 −1 clsave/config.json
  2. +16 −0 docs/modding_lua.txt
View
@@ -38,7 +38,7 @@
"audio" : {
"freq": 44100,
- "bufsize": 2048,
+ "bufsize": 512,
"volume": 1.0
},
View
@@ -313,6 +313,8 @@ client.camera_shade_set(xn, yn, zn, xp, yp, zp)
pmf = common.model_new(bonemax = 5) @
creates a new model
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
remember to free it when you're done
as this is only a light userdata
@@ -324,6 +326,8 @@ pmf = common.model_new(bonemax = 5) @
pmf = common.model_load_pmf(fname) @
loads a pmf from a file
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
remember to free it when you're done
as this is only a light userdata
@@ -337,6 +341,8 @@ success = common.model_save_pmf(pmf, fname) @
common.model_free(pmf) @
free the given model
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
if you don't do this then it's memoryleaktopia
(plus i'm allowed to kill you)
@@ -418,6 +424,8 @@ screen_width, screen_height
img, width, height = common.img_load(fname, fmt = "tga") @
loads an image with filename "fname"
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
remember to free it when you're done
as this is only a light userdata
@@ -428,6 +436,8 @@ img, width, height = common.img_load(fname, fmt = "tga") @
img = common.img_new(width, height) @
creates a new 32bpp RGBA image
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
remember to free it when you're done
as this is only a light userdata
@@ -440,6 +450,8 @@ common.img_pixel_set(img, x, y, color) @
common.img_free(img) @
free the given image
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
if you don't do this then it's memoryleaktopia
(plus i'm allowed to kill you)
@@ -616,11 +628,15 @@ common.udp_close(udpsockfd) @
wav = common.wav_load(fname) @
loads a sound with filename "fname"
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
remember to free it when you're done
as this is only a light userdata
common.wav_free(wav) @
free the given sound
+
+ [ paragraph does not apply to 0.1.2-10 and higher ]
if you don't do this then it's memoryleaktopia
(plus i'm allowed to kill you)

0 comments on commit 40938dd

Please sign in to comment.