1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 20:08:22 +01:00
Diya-API/Diya/DiyaRenderer.class.st

38 lines
586 B
Smalltalk
Raw Normal View History

2022-02-13 17:15:23 +01:00
Class {
#name : #DiyaRenderer,
#superclass : #DiyaSingleton,
2022-02-15 18:04:54 +01:00
#instVars : [
'root'
2022-02-15 18:04:54 +01:00
],
2022-02-13 17:15:23 +01:00
#pools : [
'OpenGLConstants',
'OpenGLTypes'
],
#category : #'Diya-Graphics'
}
2022-02-15 18:04:54 +01:00
{ #category : #'instance creation' }
DiyaRenderer class >> fromContext: ctx [
^self new context: ctx; yourself
]
{ #category : #initialization }
DiyaRenderer >> initialize [
super initialize.
]
2022-02-13 17:15:23 +01:00
{ #category : #deleting }
DiyaRenderer >> render [
root render.
2022-02-13 17:15:23 +01:00
]
{ #category : #accessing }
DiyaRenderer >> root [
^ root
]
{ #category : #accessing }
DiyaRenderer >> root: anObject [
root := anObject
2022-02-13 17:15:23 +01:00
]