mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 11:28:22 +01:00
Clean up
This commit is contained in:
parent
e99500acca
commit
e2adc4f733
@ -93,15 +93,6 @@ DiyaBoot >> initialize [
|
||||
clock := DiyaClock uniqueInstance.
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> randomColorChannel [
|
||||
| rand |
|
||||
rand := Random new.
|
||||
rand := (rand next) * 255.
|
||||
rand := rand asInteger.
|
||||
^ rand
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> render [
|
||||
|delta launcher|
|
||||
@ -199,18 +190,3 @@ DiyaBoot >> startx [
|
||||
DiyaSingleton resetAll.
|
||||
SDL2 quit.
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> step [
|
||||
"renderer drawColorR: 0
|
||||
g: 0
|
||||
b: 0
|
||||
a: 255."
|
||||
OpenGL begin: GL_TRIANGLES.
|
||||
"draw a simple triangle here"
|
||||
OpenGL color3fR: 0.1 G:0.2 B: 0.3.
|
||||
OpenGL vertex3fX: 0 Y: 0 Z: 0.
|
||||
OpenGL vertex3fX: 1 Y: 0 Z: 0.
|
||||
OpenGL vertex3fX: 0 Y: 1 Z: 0.
|
||||
OpenGL end.
|
||||
]
|
||||
|
@ -1,37 +0,0 @@
|
||||
Class {
|
||||
#name : #DiyaRenderer,
|
||||
#superclass : #DiyaSingleton,
|
||||
#instVars : [
|
||||
'root'
|
||||
],
|
||||
#pools : [
|
||||
'OpenGLConstants',
|
||||
'OpenGLTypes'
|
||||
],
|
||||
#category : #'Diya-Graphics'
|
||||
}
|
||||
|
||||
{ #category : #'instance creation' }
|
||||
DiyaRenderer class >> fromContext: ctx [
|
||||
^self new context: ctx; yourself
|
||||
]
|
||||
|
||||
{ #category : #initialization }
|
||||
DiyaRenderer >> initialize [
|
||||
super initialize.
|
||||
]
|
||||
|
||||
{ #category : #deleting }
|
||||
DiyaRenderer >> render [
|
||||
root render.
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
DiyaRenderer >> root [
|
||||
^ root
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
DiyaRenderer >> root: anObject [
|
||||
root := anObject
|
||||
]
|
Loading…
Reference in New Issue
Block a user