1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2025-01-15 17:18:23 +01:00
Diya-API/Diya/DiyaRenderer.class.st

39 lines
686 B
Smalltalk
Raw Normal View History

2022-02-13 17:15:23 +01:00
Class {
#name : #DiyaRenderer,
#superclass : #DiyaBaseObject,
2022-02-15 18:04:54 +01:00
#instVars : [
'context'
],
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
]
2022-02-13 17:15:23 +01:00
{ #category : #deleting }
DiyaRenderer >> destroy [
^ self subclassResponsibility
]
2022-02-15 18:04:54 +01:00
{ #category : #initialization }
DiyaRenderer >> initialize [
super initialize.
context := DiyaRendererContext uniqueInstance
]
2022-02-13 17:15:23 +01:00
{ #category : #deleting }
DiyaRenderer >> render [
^ self subclassResponsibility
]
{ #category : #deleting }
DiyaRenderer >> setup [
^ self subclassResponsibility
]