Skip to content

Commit

Permalink
updated glisy .h and .c comments
Browse files Browse the repository at this point in the history
  • Loading branch information
humanshell committed Feb 8, 2016
1 parent f36e79b commit 5f810e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 17 deletions.
21 changes: 10 additions & 11 deletions include/glisy/glisy.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extern "C" {
#endif

/**
* glisy api
* Glisy API.
*/

#include <glisy/gl.h>
Expand All @@ -18,34 +18,33 @@ extern "C" {
#include <glisy/renderer.h>

/**
* cameras.
* Cameras.
*/

#include <glisy/camera/perspective.h>

/**
* Initializes glisy.
* Returns 1 for success, 0 for failure.
* Initialize Glisy.
*/

int
GLboolean
glisy_init(void);

/**
* Terminate glisy.
* Terminate Glisy.
*/

void
GLboolean
glisy_terminate(void);

/**
* Renders scene with camera.
* Renders a Glisy Scene with a Glisy Camera.
*/

void
glisy_render(const glisy_renderer,
const glisy_scene,
const glisy_perspective_camera);
glisy_render(const glisy_renderer renderer,
const glisy_scene scene,
const glisy_perspective_camera camera);

#ifdef __cplusplus
}
Expand Down
26 changes: 20 additions & 6 deletions src/glisy.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
#include <glisy/glisy.h>

/**
* Initializes glisy.
* Returns 1 for success, 0 for failure.
* Initialize Glisy.
*/

int
glisy_init() {
GLboolean
glisy_init(void) {
// @TODO: implement glisy_init()
return GL_TRUE;
}

/**
* Terminate glisy.
* Terminate Glisy.
*/

GLboolean
glisy_terminate(void) {
// @TODO: implement glisy_terminate()
return GL_TRUE;
}

/**
* Renders a Glisy Scene with a Glisy Camera.
*/

void
glisy_terminate(void) {}
glisy_render(const glisy_renderer renderer,
const glisy_scene scene,
const glisy_perspective_camera camera) {
// @TODO: implement glisy_render()
}

0 comments on commit 5f810e6

Please sign in to comment.