|
|
@@ -813,7 +813,7 @@ namespace Polycode {
|
|
|
|
|
|
duk_ret_t Polycode_Camera_setViewport(duk_context *context) {
|
|
|
Camera *inst = (Camera*)duk_to_pointer(context, 0);
|
|
|
- Polycode::Rectangle viewport = *(Polycode::Rectangle*)duk_to_pointer(context, 1);
|
|
|
+ Rectangle viewport = *(Rectangle*)duk_to_pointer(context, 1);
|
|
|
inst->setViewport(viewport);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -847,7 +847,7 @@ namespace Polycode {
|
|
|
duk_ret_t Polycode_Camera_projectRayFrom2DCoordinate(duk_context *context) {
|
|
|
Camera *inst = (Camera*)duk_to_pointer(context, 0);
|
|
|
Vector2 coordinate = *(Vector2*)duk_to_pointer(context, 1);
|
|
|
- Polycode::Rectangle viewport = *(Polycode::Rectangle*)duk_to_pointer(context, 2);
|
|
|
+ Rectangle viewport = *(Rectangle*)duk_to_pointer(context, 2);
|
|
|
Vector3 *retInst = new Vector3();
|
|
|
*retInst = inst->projectRayFrom2DCoordinate(coordinate,viewport);
|
|
|
duk_push_pointer(context, (void*)retInst);
|
|
|
@@ -2546,7 +2546,7 @@ namespace Polycode {
|
|
|
|
|
|
duk_ret_t Polycode_CoreServices_Render(duk_context *context) {
|
|
|
CoreServices *inst = (CoreServices*)duk_to_pointer(context, 0);
|
|
|
- Polycode::Rectangle viewport = *(Polycode::Rectangle*)duk_to_pointer(context, 1);
|
|
|
+ Rectangle viewport = *(Rectangle*)duk_to_pointer(context, 1);
|
|
|
inst->Render(viewport);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -3100,7 +3100,7 @@ namespace Polycode {
|
|
|
duk_ret_t Polycode_Entity_transformAndRender(duk_context *context) {
|
|
|
Entity *inst = (Entity*)duk_to_pointer(context, 0);
|
|
|
GPUDrawBuffer* drawBuffer = (GPUDrawBuffer*)duk_to_pointer(context, 1);
|
|
|
- Polycode::Rectangle* parentScissorBox = (Polycode::Rectangle*)duk_to_pointer(context, 2);
|
|
|
+ Rectangle* parentScissorBox = (Rectangle*)duk_to_pointer(context, 2);
|
|
|
inst->transformAndRender(drawBuffer,parentScissorBox);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -3108,7 +3108,7 @@ namespace Polycode {
|
|
|
duk_ret_t Polycode_Entity_renderChildren(duk_context *context) {
|
|
|
Entity *inst = (Entity*)duk_to_pointer(context, 0);
|
|
|
GPUDrawBuffer* buffer = (GPUDrawBuffer*)duk_to_pointer(context, 1);
|
|
|
- Polycode::Rectangle* parentScissorBox = (Polycode::Rectangle*)duk_to_pointer(context, 2);
|
|
|
+ Rectangle* parentScissorBox = (Rectangle*)duk_to_pointer(context, 2);
|
|
|
inst->renderChildren(buffer,parentScissorBox);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -3846,7 +3846,7 @@ namespace Polycode {
|
|
|
Entity *inst = (Entity*)duk_to_pointer(context, 0);
|
|
|
Matrix4 projectionMatrix = *(Matrix4*)duk_to_pointer(context, 1);
|
|
|
Matrix4 cameraMatrix = *(Matrix4*)duk_to_pointer(context, 2);
|
|
|
- Polycode::Rectangle viewport = *(Polycode::Rectangle*)duk_to_pointer(context, 3);
|
|
|
+ Rectangle viewport = *(Rectangle*)duk_to_pointer(context, 3);
|
|
|
Vector2 *retInst = new Vector2();
|
|
|
*retInst = inst->getScreenPosition(projectionMatrix,cameraMatrix,viewport);
|
|
|
duk_push_pointer(context, (void*)retInst);
|
|
|
@@ -4845,7 +4845,7 @@ namespace Polycode {
|
|
|
|
|
|
duk_ret_t Polycode_Image_getImagePart(duk_context *context) {
|
|
|
Image *inst = (Image*)duk_to_pointer(context, 0);
|
|
|
- Polycode::Rectangle subRect = *(Polycode::Rectangle*)duk_to_pointer(context, 1);
|
|
|
+ Rectangle subRect = *(Rectangle*)duk_to_pointer(context, 1);
|
|
|
PolyBase *ptrRetVal = (PolyBase*)inst->getImagePart(subRect);
|
|
|
duk_push_pointer(context, (void*)ptrRetVal);
|
|
|
return 1;
|
|
|
@@ -7880,7 +7880,7 @@ namespace Polycode {
|
|
|
|
|
|
duk_ret_t Polycode_Rectangle_Clipped(duk_context *context) {
|
|
|
Rectangle *inst = (Rectangle*)duk_to_pointer(context, 0);
|
|
|
- Polycode::Rectangle rect = *(Polycode::Rectangle*)duk_to_pointer(context, 1);
|
|
|
+ Rectangle rect = *(Rectangle*)duk_to_pointer(context, 1);
|
|
|
Polycode::Rectangle *retInst = new Polycode::Rectangle();
|
|
|
*retInst = inst->Clipped(rect);
|
|
|
duk_push_pointer(context, (void*)retInst);
|
|
|
@@ -10005,7 +10005,7 @@ namespace Polycode {
|
|
|
|
|
|
duk_ret_t Polycode_SceneManager_Render(duk_context *context) {
|
|
|
SceneManager *inst = (SceneManager*)duk_to_pointer(context, 0);
|
|
|
- Polycode::Rectangle viewport = *(Polycode::Rectangle*)duk_to_pointer(context, 1);
|
|
|
+ Rectangle viewport = *(Rectangle*)duk_to_pointer(context, 1);
|
|
|
inst->Render(viewport);
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -11740,18 +11740,6 @@ namespace Polycode {
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- duk_ret_t Polycode_ShaderBinding__get_resetAttributes(duk_context *context) {
|
|
|
- ShaderBinding *inst = (ShaderBinding*)duk_to_pointer(context, 0);
|
|
|
- duk_push_boolean(context, inst->resetAttributes);
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- duk_ret_t Polycode_ShaderBinding__set_resetAttributes(duk_context *context) {
|
|
|
- ShaderBinding *inst = (ShaderBinding*)duk_to_pointer(context, 0);
|
|
|
- inst->resetAttributes = duk_to_boolean(context, 1);
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
duk_ret_t Polycode_ShaderBinding__get_targetShader(duk_context *context) {
|
|
|
ShaderBinding *inst = (ShaderBinding*)duk_to_pointer(context, 0);
|
|
|
PolyBase *ptrRetVal = (PolyBase*)inst->targetShader;
|