Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

91
LINES

< > BotCompany Repo | #1029753 // JOGL framework.Semantic

JavaX fragment (include)

1  
/**
2  
 * @author gbarbieri
3  
 */
4  
abstract static class Semantic {
5  
6  
    public interface Attr {
7  
8  
        int POSITION = 0;
9  
        int COLOR = 1;
10  
        int NORMAL = 2;
11  
        int TEXCOORD = 3;
12  
        int DRAW_ID = 4;
13  
    }
14  
15  
    public interface Buffer {
16  
17  
        int STATIC = 0;
18  
        int DYNAMIC = 1;
19  
    }
20  
21  
    public interface Frag {
22  
23  
        int COLOR = 0;
24  
        int RED = 0;
25  
        int GREEN = 1;
26  
        int BLUE = 2;
27  
        int ALPHA = 0;
28  
    }
29  
30  
    public interface Image {
31  
32  
        int DIFFUSE = 0;
33  
        int PICKING = 1;
34  
    }
35  
36  
    public interface Object {
37  
38  
        int VAO = 0;
39  
        int VBO = 1;
40  
        int IBO = 2;
41  
        int TEXTURE = 3;
42  
        int SAMPLER = 4;
43  
        int SIZE = 5;
44  
    }
45  
46  
    public interface Renderbuffer {
47  
48  
        int DEPTH = 0;
49  
        int COLOR0 = 1;
50  
    }
51  
52  
    public interface Sampler {
53  
54  
        int DIFFUSE = 0;
55  
        int POSITION = 4;
56  
        int TEXCOORD = 5;
57  
        int COLOR = 6;
58  
    }
59  
60  
    public interface Storage {
61  
62  
        int VERTEX = 0;
63  
    }
64  
65  
    public interface Uniform {
66  
67  
        int MATERIAL = 0;
68  
        int TRANSFORM0 = 1;
69  
        int TRANSFORM1 = 2;
70  
        int INDIRECTION = 3;
71  
        int GLOBAL_MATRICES = 4;
72  
        int CONSTANT = 0;
73  
        int PER_FRAME = 1;
74  
        int PER_PASS = 2;
75  
        int LIGHT = 3;
76  
    }
77  
78  
    public interface Vert {
79  
80  
        int POSITION = 0;
81  
        int COLOR = 3;
82  
        int TEXCOORD = 4;
83  
        int INSTANCE = 7;
84  
    }
85  
86  
    public interface Stream {
87  
88  
        int A = 0;
89  
        int B = 1;
90  
    }
91  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029753
Snippet name: JOGL framework.Semantic
Eternal ID of this version: #1029753/1
Text MD5: b574e0c91b14432a76ec7f82629d49c1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-11 22:16:20
Source code size: 1601 bytes / 91 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 277
Referenced in: [show references]