Переглянути джерело

Merge pull request #295 from thareh/master

Added missing function & documentation fixes
Brucey 1 рік тому
батько
коміт
c9df2aceee
3 змінених файлів з 25 додано та 0 видалено
  1. 10 0
      blitz.mod/blitz.bmx
  2. 12 0
      io.mod/io.bmx
  3. 3 0
      max2d.mod/image.bmx

+ 10 - 0
blitz.mod/blitz.bmx

@@ -867,6 +867,16 @@ about: Only available on x64.
 keyword: "Double128"
 End Rem
 
+Rem
+bbdoc: Signed 32/64 bit integer type depending on platform
+keyword: "LongInt"
+EndRem
+
+Rem
+bbdoc: Unsigned 32/64 bit integer type depending on platform
+keyword: "ULongInt"
+EndRem
+
 Rem
 bbdoc: String type
 keyword: "String"

+ 12 - 0
io.mod/io.bmx

@@ -307,6 +307,18 @@ Type MaxIO
 		Return bmx_PHYSFS_openWrite(path)
 	End Function
 	
+	Rem
+	bbdoc: Opens a file for reading.
+	about: Opens a file for reading, in platform-independent notation.
+	The search path is checked one at a time until a matching file is found, in which case an abstract filehandle is associated with it, and reading may be done.
+	The reading offset is set to the first byte of the file.
+
+	Note that entries that are symlinks are ignored if PHYSFS_permitSymbolicLinks(1) hasn't been called, and opening a symlink with this function will fail in such a case.
+	End Rem
+	Function OpenRead:Byte Ptr(path:String)
+		Return bmx_PHYSFS_openRead(path)
+	End Function
+	
 	Rem
 	bbdoc: Closes a file handle.
 	about: This call is capable of failing if the operating system was buffering writes to the physical media, and, now forced to write those

+ 3 - 0
max2d.mod/image.bmx

@@ -114,6 +114,9 @@ Type TImage
 	
 End Type
 
+Rem
+bbdoc: Max2D Render Image type
+EndRem
 Type TRenderImage Extends TImage
 	Method Frame:TImageFrame(index:Int) Override
 		Assert index < seqs.length And index < frames.length Else "Index out of bounds"