Integration Tutorial

NameLocation
Integration<Vortex Studio Installation Folder>\tutorials\ExVHLIntegration

This tutorial provide an example of embedding Vortex in a custom application.

This case uses the simple API VortexIntegration to achieve the integration.

The application uses SDL as a rendering engine and keyboard controls.


Vortex is uses a a physics engine in this case.

Using the VHL Interface of the mechanism, the application feeds the velocity to the ball using the keyboard and reads the position of the ball to render it on the screen.

See Vortex Studio SDK - Using Vortex Integration for more details

Using the tutorial

  1. Open Tutorials solution
  2. Set ExVHLInterface as the active project.
  3. Compile the project.
  4. The code is fully documented explaining each steps.
  5. Run the executable.
  6. You will see 2 views:
    1. The Vortex 3D view, seeing what is happening in Vortex. This is meant as a debug view
    2. The SDL window, which is the actual game.
      1. If the window has focus, the left and right arrow and be used to move the paddle.
      2. Try to keep the ball in play above the paddle.
      3. The ball accelerate to a point that it will move thru the paddle and the game will be over.
  7. To go into detail, debug the project and follow the code execution step by step.