Added missing header comments.
This commit is contained in:
@ -83,7 +83,6 @@ void queueRestack(queue_t *queue) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void _queueDelayUpdate(queue_t *queue, queueaction_t *action, uint8_t i) {
|
||||
float n = queue->timeline - queue->actionStarted;
|
||||
if(n < queue->delays[i]) return;
|
||||
|
@ -7,12 +7,16 @@
|
||||
|
||||
#include "bitmapfont.h"
|
||||
|
||||
tilesetdiv_t * bitmapFontGetCharacterDivision(tileset_t *tileset, char character) {
|
||||
tilesetdiv_t * bitmapFontGetCharacterDivision(tileset_t *tileset,
|
||||
char character
|
||||
) {
|
||||
int32_t i = ((int32_t)character) - BITMAP_FONT_CHAR_START;
|
||||
return tileset->divisions + i;
|
||||
}
|
||||
|
||||
bitmapfontmeasure_t bitmapFontMeasure(char *string, float charWidth, float charHeight) {
|
||||
bitmapfontmeasure_t bitmapFontMeasure(char *string,
|
||||
float charWidth, float charHeight
|
||||
) {
|
||||
int32_t i;
|
||||
float x, y;
|
||||
char c;
|
||||
|
@ -16,7 +16,9 @@
|
||||
* @param character Character to get the division for.
|
||||
* @return The division from the tileset for the character.
|
||||
*/
|
||||
tilesetdiv_t * bitmapFontGetCharacterDivision(tileset_t *tileset, char character);
|
||||
tilesetdiv_t * bitmapFontGetCharacterDivision(tileset_t *tileset,
|
||||
char character
|
||||
);
|
||||
|
||||
/**
|
||||
* Measures a string's fully rendered size.
|
||||
@ -26,7 +28,9 @@ tilesetdiv_t * bitmapFontGetCharacterDivision(tileset_t *tileset, char character
|
||||
* @param charHeight The height of each character.
|
||||
* @return The measured string.
|
||||
*/
|
||||
bitmapfontmeasure_t bitmapFontMeasure(char *string, float charWidth, float charHeight);
|
||||
bitmapfontmeasure_t bitmapFontMeasure(char *string,
|
||||
float charWidth, float charHeight
|
||||
);
|
||||
|
||||
/**
|
||||
* Renders a set of font characters to the sprite. Coordinates are anchored to
|
||||
@ -42,6 +46,7 @@ bitmapfontmeasure_t bitmapFontMeasure(char *string, float charWidth, float charH
|
||||
* @param charHeight Height of each character. Set to -1 to be the width ratio.
|
||||
* @returns The string measurement.
|
||||
*/
|
||||
bitmapfontmeasure_t bitmapFontSpriteBatchBuffer(spritebatch_t *batch, tileset_t *tileset,
|
||||
bitmapfontmeasure_t bitmapFontSpriteBatchBuffer(
|
||||
spritebatch_t *batch, tileset_t *tileset,
|
||||
char *string, float x, float y, float z, float charWidth, float charHeight
|
||||
);
|
@ -7,7 +7,9 @@
|
||||
|
||||
#include "primitive.h"
|
||||
|
||||
void primitiveInit(primitive_t *primitive, int32_t verticeCount, int32_t indiceCount) {
|
||||
void primitiveInit(primitive_t *primitive,
|
||||
int32_t verticeCount, int32_t indiceCount
|
||||
) {
|
||||
primitive->verticeCount = verticeCount;
|
||||
primitive->indiceCount = indiceCount;
|
||||
|
||||
|
@ -14,7 +14,9 @@
|
||||
* @param verticeCount How many vertices can the primitive hold.
|
||||
* @param indiceCount How many indices can the primitive hold.
|
||||
*/
|
||||
void primitiveInit(primitive_t *primitive, int32_t verticeCount, int32_t indiceCount);
|
||||
void primitiveInit(primitive_t *primitive,
|
||||
int32_t verticeCount, int32_t indiceCount
|
||||
);
|
||||
|
||||
/**
|
||||
* Buffer Vertices to a primitive for use in rendering.
|
||||
|
@ -28,6 +28,7 @@ void renderFrameStart(render_t *render) {
|
||||
}
|
||||
|
||||
void renderDispose() {
|
||||
|
||||
}
|
||||
|
||||
void renderSetResolution(render_t *render, float width, float height) {
|
||||
|
@ -53,7 +53,7 @@ void shaderUseTexture(shader_t *shader, texture_t *texture);
|
||||
* @param uniform Uniform on the shader to set.
|
||||
* @param matrix Matrix to apply.
|
||||
*/
|
||||
void shaderUseMatrix(shader_t *shader, shaderuniform_t uniform,matrix_t *matrix);
|
||||
void shaderUseMatrix(shader_t *shader,shaderuniform_t uniform,matrix_t *matrix);
|
||||
|
||||
/**
|
||||
* Set's the current translation matrix onto the shader for the next
|
||||
|
Reference in New Issue
Block a user