mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
Update python_methods_graphics.cc
This commit is contained in:
parent
7a34b38a88
commit
ec0fbfacef
@ -1,9 +1,9 @@
|
|||||||
// Released under the MIT License. See LICENSE for details.
|
// Released under the MIT License. See LICENSE for details.
|
||||||
|
|
||||||
#include "ballistica/python/methods/python_methods_graphics.h"
|
#include "ballistica/python/methods/python_methods_graphics.h"
|
||||||
#include "ballistica/graphics/camera.h"
|
|
||||||
|
|
||||||
#include "ballistica/game/game.h"
|
#include "ballistica/game/game.h"
|
||||||
|
#include "ballistica/graphics/camera.h"
|
||||||
#include "ballistica/graphics/graphics.h"
|
#include "ballistica/graphics/graphics.h"
|
||||||
#include "ballistica/graphics/text/text_graphics.h"
|
#include "ballistica/graphics/text/text_graphics.h"
|
||||||
#include "ballistica/platform/platform.h"
|
#include "ballistica/platform/platform.h"
|
||||||
@ -68,9 +68,9 @@ auto PySetCameraTarget(PyObject* self, PyObject* args, PyObject* keywds)
|
|||||||
float x = 0.0f;
|
float x = 0.0f;
|
||||||
float y = 0.0f;
|
float y = 0.0f;
|
||||||
float z = 0.0f;
|
float z = 0.0f;
|
||||||
static const char* kwlist[] = { "x", "y", "z", nullptr };
|
static const char* kwlist[] = {"x", "y", "z", nullptr};
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, keywds, "fff",
|
if (!PyArg_ParseTupleAndKeywords(args, keywds, "fff",
|
||||||
const_cast<char**>(kwlist), &x, &y, &z)) {
|
const_cast<char**>(kwlist), &x, &y, &z)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
assert(g_game);
|
assert(g_game);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user