SDK quick start

From Kraytracing Wiki

Jump to: navigation, search

To start developement with Kray you need to download Kray SDK files first and free demo version of Kray lib. SDK archive contaings following files:

  • kray.h - Main Kray C/C++ header file. This file you need to include to be able to load Kray dynamic library and use it in Your project.
  • sdkcommons.h - Additional header. No need to include it to Your C/C++ file (its included in kray.h)
  • kray_loader.cpp - Kray dynamic library loader code. Loads and initializes Kray library. Its platform independent, so you can use it on Mac and Windows and don't worry about OS specific dynamic library functions. You need to compile and link it with Your project.
  • pure_c_wrapper.cpp - For those who don't like C++ and prefer pure C. If you want to use C interface (instead of native C++ interface) you need to compile and link this file with Your project. For C++ projects it is not necessary.

At the moment kray.dll (Win32 and Win64), kray.dylib (MacOS UB Intel/PPC 32/64 bit) are available, but since Kray has very low platform dependency, it can be easily ported to any platform with C++ compiler. Do not think that you are limited to current SDK features set. Comments and improvement ideas are very welcome. Send us what you need to be exposed in the SDK and we will be happy to improve it.

Powered by MediaWiki