2022-02-13 17:15:23 +01:00
|
|
|
Class {
|
|
|
|
#name : #DiyaRenderer,
|
2022-03-02 20:11:01 +01:00
|
|
|
#superclass : #DiyaSingleton,
|
2022-02-15 18:04:54 +01:00
|
|
|
#instVars : [
|
2022-03-02 20:11:01 +01:00
|
|
|
'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 [
|
2022-03-02 20:11:01 +01:00
|
|
|
root render.
|
2022-02-13 17:15:23 +01:00
|
|
|
]
|
|
|
|
|
2022-03-02 20:11:01 +01:00
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaRenderer >> root [
|
|
|
|
^ root
|
|
|
|
]
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
DiyaRenderer >> root: anObject [
|
|
|
|
root := anObject
|
2022-02-13 17:15:23 +01:00
|
|
|
]
|