KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
radial_blur.c File Reference
#include <kos.h>
#include <KGL/gl.h>
#include <KGL/glext.h>
#include <KGL/glu.h>
#include <KGL/glut.h>

Macros

#define ENABLE_RADIAL_BLUR   2
 
#define DISABLE_RADIAL_BLUR   3
 
#define INCREASE_RADIAL_BLUR   4
 
#define DECREASE_RADIAL_BLUR   5
 

Functions

GLuint glTextureLoadPVR (char *fname, unsigned char isMipMapped, unsigned char glMipMap)
 
GLubyte InitRenderTexture (GLsizei width, GLsizei height)
 
void RenderBlurEffect (int times, float inc, long unsigned int width, long unsigned int height, GLuint texID)
 
void DrawGL (GLuint texID)
 
int InputCallback (void)
 
static int check_start (void)
 
int main (int argc, char **argv)
 

Variables

static GLfloat xrot
 
static GLfloat yrot
 
static GLfloat xspeed
 
static GLfloat yspeed
 
static GLfloat z = -5.0f
 
static GLuint RENDER_TEXTURE_ID
 
static long unsigned int RENDER_TEXTURE_W
 
static long unsigned int RENDER_TEXTURE_H
 
static GLuint fbo [1]
 

Macro Definition Documentation

◆ DECREASE_RADIAL_BLUR

#define DECREASE_RADIAL_BLUR   5

Referenced by InputCallback(), and main().

◆ DISABLE_RADIAL_BLUR

#define DISABLE_RADIAL_BLUR   3

Referenced by InputCallback(), and main().

◆ ENABLE_RADIAL_BLUR

#define ENABLE_RADIAL_BLUR   2

Referenced by InputCallback(), and main().

◆ INCREASE_RADIAL_BLUR

#define INCREASE_RADIAL_BLUR   4

Referenced by InputCallback(), and main().

Function Documentation

◆ check_start()

static int check_start ( void )
static

◆ DrawGL()

void DrawGL ( GLuint texID)

References xrot, xspeed, yrot, yspeed, and z.

Referenced by main().

◆ glTextureLoadPVR()

GLuint glTextureLoadPVR ( char * fname,
unsigned char isMipMapped,
unsigned char glMipMap )
extern

Referenced by main().

◆ InitRenderTexture()

GLubyte InitRenderTexture ( GLsizei width,
GLsizei height )

References fbo, RENDER_TEXTURE_H, RENDER_TEXTURE_ID, and RENDER_TEXTURE_W.

Referenced by main().

◆ InputCallback()

◆ main()

◆ RenderBlurEffect()

void RenderBlurEffect ( int times,
float inc,
long unsigned int width,
long unsigned int height,
GLuint texID )

References H, vid_mode_t::height, vid_mode, W, and vid_mode_t::width.

Referenced by main().

Variable Documentation

◆ fbo

GLuint fbo[1]
static

Referenced by InitRenderTexture(), and main().

◆ RENDER_TEXTURE_H

long unsigned int RENDER_TEXTURE_H
static

Referenced by InitRenderTexture(), and main().

◆ RENDER_TEXTURE_ID

GLuint RENDER_TEXTURE_ID
static

Referenced by InitRenderTexture(), and main().

◆ RENDER_TEXTURE_W

long unsigned int RENDER_TEXTURE_W
static

Referenced by InitRenderTexture(), and main().

◆ xrot

GLfloat xrot
static

Referenced by DrawGL().

◆ xspeed

GLfloat xspeed
static

Referenced by DrawGL(), and InputCallback().

◆ yrot

GLfloat yrot
static

Referenced by DrawGL().

◆ yspeed

GLfloat yspeed
static

Referenced by DrawGL(), and InputCallback().

◆ z

GLfloat z = -5.0f
static

Referenced by DrawGL(), and InputCallback().