mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-01-15 17:18:23 +01:00
39 lines
632 B
Smalltalk
39 lines
632 B
Smalltalk
|
Class {
|
||
|
#name : #DiyaRendererContext,
|
||
|
#superclass : #DiyaSingleton,
|
||
|
#instVars : [
|
||
|
'mouse',
|
||
|
'display'
|
||
|
],
|
||
|
#pools : [
|
||
|
'OpenGLConstants',
|
||
|
'OpenGLTypes'
|
||
|
],
|
||
|
#category : #'Diya-Graphics'
|
||
|
}
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaRendererContext >> display [
|
||
|
^ display
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaRendererContext >> display: anObject [
|
||
|
display := anObject
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaRendererContext >> mouse [
|
||
|
^ mouse
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaRendererContext >> mouse: anObject [
|
||
|
mouse := anObject
|
||
|
]
|
||
|
|
||
|
{ #category : #'as yet unclassified' }
|
||
|
DiyaRendererContext >> resolution [
|
||
|
^ (display w) @ (display h)
|
||
|
]
|