1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-28 12:28:21 +01:00
Diya-API/Diya/DiyaRootNode.class.st

29 lines
500 B
Smalltalk
Raw Normal View History

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 [
OpenGL clearColorR: 1.0 G: 0.0 B: 1.0 A:0.
OpenGL clear: GL_COLOR_BUFFER_BIT.
]
{ #category : #initialization }
DiyaRootNode >> initialize [
super initialize.
parent := self.
2022-03-03 19:19:40 +01:00
shader := DiyaDefaultShader uniqueInstance.
2022-03-01 22:58:58 +01:00
]
{ #category : #testing }
DiyaRootNode >> isRoot [
^ true
2022-03-01 22:58:58 +01:00
]
{ #category : #accessing }
DiyaRootNode >> updateTF [
"donothing"
2022-03-01 22:58:58 +01:00
]