diff --git a/Diya/DiyaBoot.class.st b/Diya/DiyaBoot.class.st index 9c38753..fe665e9 100644 --- a/Diya/DiyaBoot.class.st +++ b/Diya/DiyaBoot.class.st @@ -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. -] diff --git a/Diya/DiyaRenderer.class.st b/Diya/DiyaRenderer.class.st deleted file mode 100644 index 140ee00..0000000 --- a/Diya/DiyaRenderer.class.st +++ /dev/null @@ -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 -]