2012-01-24 13:16:20 +00:00
|
|
|
#ifndef _PAYSAGES_RENDER_H_
|
|
|
|
#define _PAYSAGES_RENDER_H_
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "shared/types.h"
|
|
|
|
#include "renderer.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void renderInit();
|
2012-02-12 16:57:29 +00:00
|
|
|
void renderQuit();
|
|
|
|
|
2012-01-29 21:45:58 +00:00
|
|
|
RenderArea* renderCreateArea();
|
|
|
|
void renderDeleteArea(RenderArea* area);
|
|
|
|
|
|
|
|
void renderSetSize(RenderArea* area, int width, int height);
|
|
|
|
void renderSetBackgroundColor(RenderArea* area, Color* col);
|
|
|
|
void renderClear(RenderArea* area);
|
|
|
|
void renderUpdate(RenderArea* area);
|
|
|
|
|
|
|
|
void renderAddFragment(RenderArea* area, RenderFragment* fragment);
|
|
|
|
void renderPushFragment(RenderArea* area, int x, int y, double z, Vertex* vertex);
|
|
|
|
void renderPushTriangle(RenderArea* area, Vertex* v1, Vertex* v2, Vertex* v3, Vector3 p1, Vector3 p2, Vector3 p3);
|
|
|
|
|
|
|
|
void renderPostProcess(RenderArea* area, Renderer* renderer, int nbchunks);
|
2012-05-06 10:13:34 +00:00
|
|
|
int renderSaveToFile(RenderArea* area, const char* path);
|
2012-01-29 21:45:58 +00:00
|
|
|
void renderSetPreviewCallbacks(RenderArea* area, RenderCallbackStart start, RenderCallbackDraw draw, RenderCallbackUpdate update);
|
2012-01-24 13:16:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|