mirror of
https://github.com/Memorix101/UnityXNA/
synced 2024-12-30 15:25:35 +01:00
41 lines
951 B
C#
41 lines
951 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
namespace Microsoft.Xna.Framework.Graphics
|
|
{
|
|
public class GraphicsDevice
|
|
{
|
|
Viewport viewport = new Viewport();
|
|
private DrawQueue drawQueue;
|
|
|
|
public DrawQueue DrawQueue
|
|
{
|
|
get { return drawQueue; }
|
|
set { drawQueue = value; }
|
|
}
|
|
|
|
public GraphicsDevice(DrawQueue drawQueue)
|
|
{
|
|
// TODO: Complete member initialization
|
|
this.drawQueue = drawQueue;
|
|
|
|
viewport = new Viewport(0,0,UnityEngine.Screen.width, UnityEngine.Screen.height);
|
|
}
|
|
|
|
public Viewport Viewport
|
|
{
|
|
get { return viewport; }
|
|
set { viewport = value; }
|
|
}
|
|
|
|
|
|
internal void Clear(Color color)
|
|
{
|
|
Camera.main.backgroundColor = new UnityEngine.Color(color.R, color.G, color.B);
|
|
}
|
|
}
|
|
}
|