Programming API Reference: SharpGfx.Geometries

Class public static Geometry

Each contained method creates some kind of geometry from the given parameters.

Method public static IGeometry Create2D()

Create a 2d geometry. Each vertex is defined by 3 position coordinates. Three consecutive vertices define one triangle.
  • float[] positions: unrolled (x, y) coordinates

Method public static IGeometry Create2D()

Create a 2d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y) coordinates
  • uint[] triangles: unrolled list of vertex numbers

Method public static IGeometry Create2D()

Create a 2d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y) coordinates
  • ushort[] triangles: unrolled list of vertex numbers

Method public static ITexturedGeometry Create2D()

Create a 2d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y) coordinates
  • uint[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates

Method public static ITexturedGeometry Create2D()

Create a 2d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y) coordinates
  • ushort[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position coordinates. Three consecutive vertices define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position and 3 normal coordinates. Three consecutive vertices define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • float[] normals: unrolled (x, y, z) coordinates

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • uint[] triangles: unrolled list of vertex numbers

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • ushort[] triangles: unrolled list of vertex numbers

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position and 3 normal coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • float[] normals: unrolled (x, y, z) coordinates
  • uint[] triangles: unrolled list of vertex numbers

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position and 3 normal coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • float[] normals: unrolled (x, y, z) coordinates
  • ushort[] triangles: unrolled list of vertex numbers

Method public static ITexturedGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • uint[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates

Method public static ITexturedGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • ushort[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position and 3 normal coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • float[] normals: unrolled (x, y, z) coordinates
  • uint[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates

Method public static IGeometry Create()

Create a 3d geometry. Each vertex is defined by 3 position and 3 normal coordinates. Three consecutive triangle elements define one triangle.
  • float[] positions: unrolled (x, y, z) coordinates
  • float[] normals: unrolled (x, y, z) coordinates
  • ushort[] triangles: unrolled list of vertex numbers
  • float[] textureUv: unrolled (u, v) texture coordinates