예제 #1
0
 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);
 }
예제 #2
0
        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);
        }
예제 #3
0
 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);
 }
예제 #4
0
        public void setParameter(string str, int i, org.mini2Dx.core.graphics.Texture t)
        {
            MonoGameTexture texture = t as MonoGameTexture;

            shader.Parameters[str].SetValue(texture.texture2D);
        }