-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaselineOfOpenGL.class.st
77 lines (68 loc) · 1.79 KB
/
BaselineOfOpenGL.class.st
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
Class {
#name : #BaselineOfOpenGL,
#superclass : #BaselineOf,
#category : #BaselineOfOpenGL
}
{
#category : #baseline,
#'squeak_changestamp' : 'stlu 6/21/2022 12:02'
}
BaselineOfOpenGL >> baseline: spec [
<baseline>
spec for: #common do: [
spec
project: 'FFI' with: [
spec
className: 'ConfigurationOfFFI';
repository: 'http://www.squeaksource.com/MetacelloRepository';
versionString: #development];
"baseline: 'GLFW' with: [
spec
repository: 'github://hpi-swa-lab/squeak-graphics-opengl:main/GLFW/src/';
loads: #('openGL')];"
package: 'OpenGL-Constants';
package: 'OpenGL-Types' with: [spec requires: #('FFI')];
package: 'OpenGL-Generation' with: [spec requires: #('OpenGL-Types' 'OpenGL-Constants')];
package: 'OpenGL-Core' with: [spec requires: #('OpenGL-Generation' 'OpenGL-Constants')];
package: 'OpenGL-Balloon3D' with: [spec requires: #('OpenGL-Core')];
package: 'OpenGL-Examples' with: [
spec
requires: #('OpenGL-Core');
"includes: #('GLFW');"
postLoadDoIt: #postLoadForExamples].
spec
group: 'default' with: #('all');
group: 'core' with: #('OpenGL-Core');
group: 'all' with: #('core' 'OpenGL-Balloon3D' 'OpenGL-Examples')].
]
{
#category : #scripts,
#'squeak_changestamp' : 'stlu 9/22/2021 14:36'
}
BaselineOfOpenGL >> postLoadForExamples [
GLLibraryMethods loadCommands: #(
"Used during context creation"
glGetString
glGetStringi
glGetIntegerv
glGetError
"Universally required"
glClearColor
glClear
"Deprecated OpenGL"
glDisable
glRotatef
glColor3f
glBegin
glVertex2f
glEnd).
]
{
#category : #baseline,
#'squeak_changestamp' : 'stlu 04/20/2021 13:28'
}
BaselineOfOpenGL >> projectClass [
^ Smalltalk
at: #MetacelloCypressBaselineProject
ifAbsent: [super projectClass]
]