2022-03-01 22:58:58 +01:00
|
|
|
Class {
|
|
|
|
#name : #DiyaRootNode,
|
2022-03-03 19:19:40 +01:00
|
|
|
#superclass : #DiyaNode,
|
2022-03-01 22:58:58 +01:00
|
|
|
#category : #'Diya-Graphics'
|
|
|
|
}
|
|
|
|
|
2022-03-03 19:19:40 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaRootNode >> draw [
|
2022-03-06 18:33:10 +01:00
|
|
|
OpenGL clearColorR: 0.0 G: 0.0 B: 0.0 A:0.
|
2022-03-03 19:19:40 +01:00
|
|
|
OpenGL clear: GL_COLOR_BUFFER_BIT.
|
2022-03-06 00:58:28 +01:00
|
|
|
context vbo bind: GL_ARRAY_BUFFER.
|
2022-03-03 19:19:40 +01:00
|
|
|
]
|
|
|
|
|
2022-03-02 20:11:01 +01:00
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaRootNode >> initialize [
|
|
|
|
super initialize.
|
|
|
|
parent := self.
|
2022-03-06 18:33:10 +01:00
|
|
|
shader := nil.
|
2022-03-01 22:58:58 +01:00
|
|
|
]
|
|
|
|
|
2022-03-02 20:11:01 +01:00
|
|
|
{ #category : #testing }
|
|
|
|
DiyaRootNode >> isRoot [
|
|
|
|
^ true
|
2022-03-01 22:58:58 +01:00
|
|
|
]
|
|
|
|
|
2022-03-06 19:50:19 +01:00
|
|
|
{ #category : #initialization }
|
|
|
|
DiyaRootNode >> update [
|
|
|
|
^true
|
|
|
|
]
|
|
|
|
|
2022-03-02 20:11:01 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaRootNode >> updateTF [
|
|
|
|
"donothing"
|
2022-03-01 22:58:58 +01:00
|
|
|
]
|