public MonoGameFrameBuffer(GraphicsDevice graphicsDevice, int width, int height) { _graphicsDevice = graphicsDevice; _renderTarget = new RenderTarget2D(graphicsDevice, width, height, false, SurfaceFormat.Color, DepthFormat.Depth24); texture = new MonoGameTexture(null); }
public void setParameter(Java.Lang.String str, int i, Org.Mini2Dx.Core.Graphics.Texture t) { MonoGameTexture texture = t as MonoGameTexture; shader.Parameters[(string)str].SetValue(texture.texture2D); }
private static void draw(org.mini2Dx.core.Graphics g, MonoGameTexture texture, SpriteCacheDrawingOperation op) { ((MonoGameGraphics)g).drawTexture(texture, op.dstX, op.dstY, op.srcX, op.srcY, op.srcWidth, op.srcHeight, op.scaleX, op.scaleY, op.originX, op.originY, op.rotation, op.flipX, op.flipY, op.color); }
public void setParameter(string str, int i, org.mini2Dx.core.graphics.Texture t) { MonoGameTexture texture = t as MonoGameTexture; shader.Parameters[str].SetValue(texture.texture2D); }