3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
clew.h File Reference

OpenCL run-time loader header. More...

#include <stdint.h>
#include <stddef.h>

Macros

#define CLEW_SUCCESS   0
 Success error code. More...
 
#define CLEW_ERROR_OPEN_FAILED   -1
 Error code for failing to open the dynamic library. More...
 
#define CLEW_ERROR_ATEXIT_FAILED   -2
 Error code for failing to queue the closing of the dynamic library to atexit() More...
 

Functions

int clewInit (const char *)
 Load OpenCL dynamic library and set function entry points. More...
 
void clewExit ()
 Exit clew and unload OpenCL dynamic library. More...
 
const char * clewErrorString (cl_int error)
 Convert an OpenCL error code to its string equivalent. More...
 

Detailed Description

OpenCL run-time loader header.

This file contains a copy of the contents of CL.H and CL_PLATFORM.H from the official OpenCL spec. The purpose of this code is to load the OpenCL dynamic library at run-time and thus allow the executable to function on many platforms regardless of the vendor of the OpenCL driver actually installed. Some of the techniques used here were inspired by work done in the GLEW library (http://glew.sourceforge.net/)

Macro Definition Documentation

#define CLEW_ERROR_ATEXIT_FAILED   -2

Error code for failing to queue the closing of the dynamic library to atexit()

Referenced by clewInit().

#define CLEW_ERROR_OPEN_FAILED   -1

Error code for failing to open the dynamic library.

Referenced by clewInit().

#define CLEW_SUCCESS   0

Success error code.

Referenced by clewInit().

Function Documentation

const char* clewErrorString ( cl_int  error)

Convert an OpenCL error code to its string equivalent.

void clewExit ( )

Exit clew and unload OpenCL dynamic library.

Referenced by clewInit().

int clewInit ( const char *  )

Load OpenCL dynamic library and set function entry points.

References CLEW_ERROR_ATEXIT_FAILED, CLEW_ERROR_OPEN_FAILED, CLEW_SUCCESS, and clewExit().