forked from chetanshetty/XamiAndAR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomObject1.cs
45 lines (35 loc) · 983 Bytes
/
CustomObject1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Text;
using Java.Lang;
using Android.Hardware;
using Java.IO;
using Javax.Microedition.Khronos.Opengles;
using Java.Nio;
using XamiAndAR;
using XamiAndAR.Interfaces;
using XamiAndAR.Exceptions;
using XamiAndAR.Pub;
using XamiAndAR.Utilities;
using XamiAndAR.AndOpenGLCam;
namespace XamiAndARApp
{
public class CustomObject1 : ARObject
{
private SimpleBox box = new SimpleBox();
public CustomObject1(string name, string patternName,
double markerWidth, double[] markerCenter)
: base(name, patternName, markerWidth, markerCenter) {
}
public override void Draw(IGL10 gl) {
base.Draw(gl);
gl.GlColor4f(0, 1.0f, 0, 1.0f);
gl.GlTranslatef( 0.0f, 0.0f, 12.5f );
box.Draw(gl);
}
public override void Init(IGL10 p0)
{
// throw new NotImplementedException();
}
}
}