git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@529 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
Michaël Lemaire 2013-02-28 20:42:16 +00:00 committed by ThunderK
parent 6521d44916
commit 737ba2a4d1

View file

@ -1,5 +1,4 @@
#include "preview.h"
#include "renderer.h"
#include <stdlib.h>
#include "../renderer.h"
@ -28,8 +27,8 @@ static void _deleteRenderer(PreviewRenderer* renderer)
static void _setCamera(PreviewRenderer* renderer, Vector3 location, Vector3 target)
{
cameraSetLocation(renderer->renderer->render_camera, location);
cameraSetTarget(renderer->renderer->render_camera, target);
cameraSetLocation(&renderer->renderer->render_camera, location.x, location.y, location.z);
cameraSetTarget(&renderer->renderer->render_camera, target.x, target.y, target.z);
}
PreviewClass previewCreateClass(FuncPreviewCustomizeRenderer customizeRenderer, FuncPreviewBindDefinition bindDefinition, FuncPreviewGetPixelColor getPixelColor)