Rev 790 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 789 | chris | 1 | using System; |
| 2 | using System.Collections.Generic; |
||
| 3 | using System.Linq; |
||
| 4 | using System.Text; |
||
| 5 | using System.Threading.Tasks; |
||
| 6 | |||
| 7 | using BauzoidNET.graphics; |
||
| 790 | chris | 8 | using BauzoidNET.graphics.renderstates; |
| 789 | chris | 9 | |
| 10 | namespace BauzoidNET.app |
||
| 11 | { |
||
| 12 | public class BauzoidApp |
||
| 13 | { |
||
| 14 | private Graphics mGraphics = null; |
||
| 15 | |||
| 16 | public BauzoidApp() |
||
| 17 | { |
||
| 18 | mGraphics = new Graphics(this); |
||
| 19 | } |
||
| 20 | |||
| 825 | chris | 21 | public void init(int width, int height) |
| 789 | chris | 22 | { |
| 825 | chris | 23 | mGraphics.init(width, height); |
| 789 | chris | 24 | } |
| 25 | |||
| 26 | public void exit() |
||
| 27 | { |
||
| 28 | mGraphics.exit(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public Graphics getGraphics() |
||
| 32 | { |
||
| 33 | return mGraphics; |
||
| 34 | } |
||
| 790 | chris | 35 | |
| 36 | public RenderStates getRenderStates() |
||
| 37 | { |
||
| 38 | return mGraphics.renderStates; |
||
| 39 | } |
||
| 789 | chris | 40 | } |
| 41 | } |