Cross-platform 3D engine.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
modules
testModels
testScenes
.gitattributes
.gitignore
README.md

README.md

X3 Core XDK

The X3 Core XDK is a cross-platform 3D graphics development kit for the Xojo programming language. X3Core contains all the classes and methods needed to render, load and save 3D assets.

Usage

Here are the basic steps to start a new X3 project:

  1. Create a new Xojo desktop project.

  2. Import the X3Core module into the project.

  3. Add an OpenGLSurface control to your window.

  4. Call X3_Initialize from the OpenGLSurface.Open event.

  5. Call X3_SetPerspective from the OpenGLSurface.Resized event.

  6. Call OpenGLSurface.Render from the Window.Paint event.

  7. Add your rendering code to the OpenGLSurface.Render event, e.g.

    ' set the background color

    OpenGL.glClearColor(0.2, 0.2, 0.2, 1) OpenGL.glClear(OpenGL.GL_COLOR_BUFFER_BIT + OpenGL.GL_DEPTH_BUFFER_BIT)

    ' render an X3Model

    OpenGL.glPushMatrix
    OpenGL.glTranslatef 0, 0, -2
    X3_RenderModel CurrentModel
    OpenGL.glPopMatrix