示例#1
0
 /// <summary>Get the position of the camera.</summary>
 /// <description>
 ///
 /// </description>
 /// <returns>The position of the camera.</returns>
 public Point3F GetPosition()
 {
     InternalUnsafeMethods.GetPosition__Args _args = new InternalUnsafeMethods.GetPosition__Args()
     {
     };
     Point3F.InternalStruct _engineResult = InternalUnsafeMethods.GetPosition()(ObjectPtr, _args);
     return(new Point3F(_engineResult));
 }
示例#2
0
        /// <summary>Gets the position in the stream</summary>
        /// <description>
        /// The easiest way to visualize this is to think of a cursor in a text file. If you have moved the cursor by five characters, the current position is 5. If you move ahead 10 more characters, the position is now 15. For StreamObject, when you read in the line the position is increased by the number of characters parsed, the null terminator, and a newline.
        /// </description>
        /// <code>
        /// // Create a file stream object for reading
        /// %fsObject = new FileStreamObject();
        ///
        /// // Open a file for reading
        /// // This file contains two lines of text repeated:
        /// // Hello World
        /// // Hello World
        /// %fsObject.open("./test.txt", "read");
        ///
        /// // Read in the first line
        /// %line = %fsObject.readLine();
        ///
        /// // Get the position of the stream
        /// %position = %fsObject.getPosition();
        ///
        /// // Print the current position
        /// // Should be 13, 10 for the words, 1 for the space, 1 for the null terminator, and 1 for the newline
        /// echo(%position);
        ///
        /// // Always remember to close a file stream when finished
        /// %fsObject.close();
        /// </code>
        /// <returns>Number of bytes which stream has parsed so far, null terminators and newlines are included</returns>
        /// <see cref="setPosition()" />
        public int GetPosition()
        {
            InternalUnsafeMethods.GetPosition__Args _args = new InternalUnsafeMethods.GetPosition__Args()
            {
            };
            int _engineResult = InternalUnsafeMethods.GetPosition()(ObjectPtr, _args);

            return(_engineResult);
        }