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
2022-03-06 00:58:28 +01:00

30 lines
536 B
Smalltalk

Class {
#name : #DiyaRootNode,
#superclass : #DiyaNode,
#category : #'Diya-Graphics'
}
{ #category : #accessing }
DiyaRootNode >> draw [
OpenGL clearColorR: 1.0 G: 0.0 B: 1.0 A:0.
OpenGL clear: GL_COLOR_BUFFER_BIT.
context vbo bind: GL_ARRAY_BUFFER.
]
{ #category : #initialization }
DiyaRootNode >> initialize [
super initialize.
parent := self.
shader := DiyaDefaultShader uniqueInstance.
]
{ #category : #testing }
DiyaRootNode >> isRoot [
^ true
]
{ #category : #accessing }
DiyaRootNode >> updateTF [
"donothing"
]