Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4750e34ac0
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (31 sloc) 0.964 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
/*
* =====================================================================================
*
* Filename: matrix.h
*
* Description: basic matrix operations
*
* Version: 1.0
* Created: 23.07.2011 04:19:09
* Revision: none
* Compiler: gcc
*
* Author: Jem
* Company:
*
* =====================================================================================
*/

#ifndef MATRIX_H_
#define MATRIX_H_

#include <GL/glew.h>
#include <stdlib.h>
#include <string.h>

#include "vector.h"

GLfloat *create_matrix();
void destroy_matrix(GLfloat *matrix);

void load_identity(GLfloat matrix[16]);
void multiply_matrix(GLfloat matrix[16], GLfloat matrix0[16], GLfloat matrix1[16]);
void translate(GLfloat matrix[16], GLfloat x, GLfloat y, GLfloat z);
void scale(GLfloat matrix[16], GLfloat x, GLfloat y, GLfloat z);
void rotate(GLfloat matrix[16], GLfloat angle, GLfloat x, GLfloat y, GLfloat z);

#endif
Something went wrong with that request. Please try again.