void draw_ui_scale()
	{
#ifdef GRAPHICS
		nvgResetTransform(vg);
		one_pixel = 1.0;
#endif
	}
Beispiel #2
0
JNIEXPORT void JNICALL Java_firststep_internal_NVG__1_1setTransform
  (JNIEnv *e, jclass c, jlong ctx, jobject jsrc)
{
	float* src = (float*)getBuffPtr(e,jsrc);
	nvgResetTransform((NVGcontext*)ctx);
	nvgTransform((NVGcontext*)ctx, src[0], src[1], src[2], src[3], src[4], src[5] );
}
	void draw_world_scale()
	{
#ifdef GRAPHICS
		nvgResetTransform(vg);
		nvgTranslate(vg, fb_width / 2, fb_height / 2);
		nvgScale(vg, double(fb_width) / world::width, double(fb_height) / world::height);
		nvgTranslate(vg, -world::width / 2, -world::height / 2);
		one_pixel = double(world::width) / fb_width;
#endif
	}
Beispiel #4
0
void NanoVG::resetTransform()
{
    nvgResetTransform( m_context() );
}
JNIEXPORT void JNICALL Java_org_lwjgl_nanovg_NanoVG_nnvgResetTransform(JNIEnv *__env, jclass clazz, jlong ctxAddress) {
	NVGcontext *ctx = (NVGcontext *)(intptr_t)ctxAddress;
	UNUSED_PARAMS(__env, clazz)
	nvgResetTransform(ctx);
}
		void NVGRenderer::resetTransform()
		{
			nvgResetTransform(m_context);
		}
Beispiel #7
0
void QNanoPainter::resetTransform()
{
    nvgResetTransform(nvgCtx());
}
Beispiel #8
0
JNIEXPORT void JNICALL Java_firststep_internal_NVG_resetTransform
  (JNIEnv *e, jclass c, jlong ctx)
{
	nvgResetTransform((NVGcontext*)ctx);
}