-
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@529 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
parent
6521d44916
commit
737ba2a4d1
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
#include "preview.h"
|
#include "preview.h"
|
||||||
#include "renderer.h"
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "../renderer.h"
|
#include "../renderer.h"
|
||||||
|
@ -28,8 +27,8 @@ static void _deleteRenderer(PreviewRenderer* renderer)
|
||||||
|
|
||||||
static void _setCamera(PreviewRenderer* renderer, Vector3 location, Vector3 target)
|
static void _setCamera(PreviewRenderer* renderer, Vector3 location, Vector3 target)
|
||||||
{
|
{
|
||||||
cameraSetLocation(renderer->renderer->render_camera, location);
|
cameraSetLocation(&renderer->renderer->render_camera, location.x, location.y, location.z);
|
||||||
cameraSetTarget(renderer->renderer->render_camera, target);
|
cameraSetTarget(&renderer->renderer->render_camera, target.x, target.y, target.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
PreviewClass previewCreateClass(FuncPreviewCustomizeRenderer customizeRenderer, FuncPreviewBindDefinition bindDefinition, FuncPreviewGetPixelColor getPixelColor)
|
PreviewClass previewCreateClass(FuncPreviewCustomizeRenderer customizeRenderer, FuncPreviewBindDefinition bindDefinition, FuncPreviewGetPixelColor getPixelColor)
|
||||||
|
|
Loading…
Reference in a new issue