53 lines
1.4 KiB
C
53 lines
1.4 KiB
C
#ifndef _WINDOW_H
|
|
#define _WINDOW_H
|
|
/*=
|
|
Window management
|
|
600
|
|
**/
|
|
|
|
// Introduction
|
|
/**
|
|
Some important functions, used for window creation and managment.
|
|
**/
|
|
|
|
__rayapi void raydium_window_close (void);
|
|
/**
|
|
This function is called by Raydium, do not use.
|
|
**/
|
|
|
|
__rayapi void raydium_window_create (GLuint tx, GLuint ty, signed char rendering, char *name);
|
|
/**
|
|
You must call this function once in your program, with following arguments:
|
|
|
|
1. ##tx##, ##ty##: window size, in pixel
|
|
2. ##rendering##: window mode: ##RAYDIUM_RENDERING_*## (NONE, WINDOW, FULLSCREEN)
|
|
3. ##name##: window's name
|
|
|
|
Raydium is using GLUT for window management, and GLUT fullscreen is not
|
|
the same between various implementations, and can fail,
|
|
so use a standard window size (640x480, 800x600, ...) for fullscreen mode.
|
|
|
|
Note that user can force fullscreen using ##--fullscreen## on the command line.
|
|
**/
|
|
|
|
__rayapi void raydium_window_resize_callback (GLsizei Width, GLsizei Height);
|
|
/**
|
|
This function is automaticaly called during a window resize,
|
|
and resize OpenGL rendering space.
|
|
|
|
There is almost no reason to call this function by yourself.
|
|
**/
|
|
|
|
__rayapi void raydium_window_view_update (void);
|
|
/**
|
|
If you've changed 3D window size (clipping: raydium_projection_*),
|
|
apply to hardware with this fonction.
|
|
**/
|
|
|
|
__rayapi void raydium_window_view_perspective(GLfloat fov, GLfloat fnear, GLfloat ffar);
|
|
/**
|
|
All-in-one function: sets all "perspective" variables, and updates.
|
|
**/
|
|
|
|
#endif
|