mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +01:00
54 lines
930 B
Smalltalk
54 lines
930 B
Smalltalk
Class {
|
|
#name : #DiyaRootNode,
|
|
#superclass : #DiyaNode,
|
|
#category : #'Diya-Graphics'
|
|
}
|
|
|
|
{ #category : #accessing }
|
|
DiyaRootNode >> boundingBox [
|
|
^ Rectangle origin: 0@0 corner: context resolution
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
DiyaRootNode >> draw [
|
|
|c|
|
|
c := self ? #bgColor.
|
|
OpenGL clearColorR: c red G: c green B: c blue A: c alpha.
|
|
OpenGL clear: GL_COLOR_BUFFER_BIT.
|
|
context vbo bind: GL_ARRAY_BUFFER.
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
DiyaRootNode >> extent [
|
|
^ context resolution
|
|
]
|
|
|
|
{ #category : #initialization }
|
|
DiyaRootNode >> initialize [
|
|
super initialize.
|
|
parent := self.
|
|
shader := nil.
|
|
root := self.
|
|
styleName := #global
|
|
]
|
|
|
|
{ #category : #'as yet unclassified' }
|
|
DiyaRootNode >> inner: aPoint [
|
|
^true
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
DiyaRootNode >> isRoot [
|
|
^true
|
|
]
|
|
|
|
{ #category : #initialization }
|
|
DiyaRootNode >> update [
|
|
^true
|
|
]
|
|
|
|
{ #category : #accessing }
|
|
DiyaRootNode >> updateTF [
|
|
"donothing"
|
|
]
|