mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-01-15 17:18:23 +01:00
39 lines
686 B
Smalltalk
39 lines
686 B
Smalltalk
Class {
|
|
#name : #DiyaRenderer,
|
|
#superclass : #DiyaBaseObject,
|
|
#instVars : [
|
|
'context'
|
|
],
|
|
#pools : [
|
|
'OpenGLConstants',
|
|
'OpenGLTypes'
|
|
],
|
|
#category : #'Diya-Graphics'
|
|
}
|
|
|
|
{ #category : #'instance creation' }
|
|
DiyaRenderer class >> fromContext: ctx [
|
|
^self new context: ctx; yourself
|
|
]
|
|
|
|
{ #category : #deleting }
|
|
DiyaRenderer >> destroy [
|
|
^ self subclassResponsibility
|
|
]
|
|
|
|
{ #category : #initialization }
|
|
DiyaRenderer >> initialize [
|
|
super initialize.
|
|
context := DiyaRendererContext uniqueInstance
|
|
]
|
|
|
|
{ #category : #deleting }
|
|
DiyaRenderer >> render [
|
|
^ self subclassResponsibility
|
|
]
|
|
|
|
{ #category : #deleting }
|
|
DiyaRenderer >> setup [
|
|
^ self subclassResponsibility
|
|
]
|