Normand Briere
2019-09-24 767be784dc7fe293bf5c5ee6507df242526be3ed
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
 
public interface iCameraPane
{
    static final public int DEFAULT = 0;
    static final public int SELECTION = 1;
    static final public int SHADOW = 2;
    static final public int OCCLUSION = 3;
 
    boolean IsDebugSelection();
    
    boolean IsBoxMode();
 
    void ClearDepth();
    
    void DepthTest(boolean depthtest);
    
    void DepthWrite(boolean depthwrite);
    
    void BackFaceCull(boolean bfc);
    
    boolean BackFaceCullMode();
    
    boolean IsAmbientOcclusionOn();
    
    boolean IsFrozen();
 
    javax.media.opengl.GL GetGL0();
    
    // Currently in Globals
    int DrawMode();
    
    void PushMatrix(double[][] matrix, int count);
    void PopMatrix(double[][] matrix);
            
    void PushTextureMatrix(double[][] matrix, int count);
    void PopTextureMatrix(double[][] matrix);
    
    Camera[] Cameras();
    
    Camera EyeCamera();
    Camera LightCamera();
    Camera ManipCamera();
    Camera RenderCamera();
    
    boolean SetCamera(Camera c, boolean set);
            
    cVector TargetLookAt();
 
    // Should be cMaterial
    void PushMaterial(Object3D obj, boolean selected);
    void PushMaterial2(Object3D obj, boolean selected);
    
    void PopMaterial(Object3D obj, boolean selected);
    void PopMaterial2(Object3D obj);
    
    void DrawString(Object3D obj);
    
    //void BindTextures(cTexture tex, int resolution) throws Exception;
    //void ReleaseTextures(cTexture tex);
    void BindPigmentTexture(cTexture tex, int resolution) throws Exception;
    void BindBumpTexture(cTexture tex, int resolution) throws Exception;
    void ReleasePigmentTexture(cTexture tex);
    void ReleaseBumpTexture(cTexture tex);
    
    void DrawFace(Object3D obj, Vertex pv, Vertex qv, Vertex rv, Face face);
    
    void DrawBox(cVector min, cVector max);
        
    void DrawGeometry(BoundaryRep bRep, boolean flipV, boolean selectmode);
    
    void DrawDynamicMesh(cMesh c);
    
    void StartTriangles();
    void EndTriangles();
    
    int  GenList();
    void NewList(int id);
    void CallList(int id);
    void EndList();
    
    void NextIndex();
            
    void DrawParticles(TriMesh geo, Object3D shape, boolean selected, boolean rotate);
    
    void PrepOcclusion(BoundaryRep br, double[][] transform);
    
    void setCursor(java.awt.Cursor cursor);
    
    com.sun.opengl.util.texture.TextureData GetTextureData(cTexture tex, boolean bump, int resolution) throws Exception;
            
    void repaint();
    
    void processKeyEvent(java.awt.event.KeyEvent e);
    
    void keyPressed(int key);
    
    // For scripts
    void ToggleLive();
    void ToggleFrustum();
    void ToggleTexture();
    void ToggleBoxMode();
    void ToggleSupport();
    void ToggleSlowPose();
    void ToggleAbort();
    void ToggleFast();
    void ToggleOeilOnce();
    void ToggleOeil();
    void ToggleTrackOnce();
    void ToggleTrack();
    void ToggleShadowTrack();
    void ToggleInertia();
    void ToggleSmoothFocus();
    void ToggleImageFlip();
    void ToggleSpeakerFocus();
    void ToggleSpeakerCamera();
    void ToggleSpeakerMocap();
}