Skip to content

Commit

Permalink
updated renderer .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 73d8389 commit 58796e0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
23 changes: 16 additions & 7 deletions include/glisy/renderer.h
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
#ifndef GLISY_RENDERER_H
#define GLISY_RENDERER_H

#include <glisy/renderer.h>
#include <glisy/gl.h>

/**
* glisy renderer structure.
* Glisy Renderer structure type.
*/

typedef struct glisy_renderer glisy_renderer;
struct glisy_renderer {

// renderer width
GLint width;

// renderer width
GLint height;

};

/**
* Set renderer viewport size with
* width and height.
* Set Glisy Renderer viewport width and height.
* @param renderer - Glisy Renderer struct
* @param width - Glisy Renderer viewport width
* @param height - Glisy Renderer viewport height
*/

void
glisy_renderer_size (const glisy_renderer, int, int);
glisy_renderer_size(const glisy_renderer renderer, GLint width, GLint height);

/**
* Updates render state.
* Update Glisy Renderer state.
* @param renderer - Glisy Renderer struct
*/

void
glisy_renderer_update (const glisy_renderer);
glisy_renderer_update(const glisy_renderer renderer);

#endif
14 changes: 12 additions & 2 deletions src/renderer.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#include <glisy/renderer.h>

/**
* Set Glisy Renderer viewport width and height.
*/

void
glisy_renderer_size (glisy_renderer this, int width, int height) {
glisy_renderer_size(glisy_renderer renderer, GLint width, GLint height) {
//@TODO(jwerle): implement glisy_renderer_size()
}

/**
* Update Glisy Renderer state.
*/

void
glisy_renderer_update (glisy_renderer this) {
glisy_renderer_update(glisy_renderer renderer) {
//@TODO(jwerle): implement glisy_renderer_update()
}

0 comments on commit 58796e0

Please sign in to comment.