From 653fe076924d8bd997a02ef2f1c6a7b9dd1723d5 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 15 Mar 2022 19:29:57 +0100 Subject: [PATCH] Add log messages --- Diya/DiyaExampleShader.class.st | 2 +- Diya/DiyaFontManager.class.st | 2 ++ Diya/DiyaImageTex.class.st | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Diya/DiyaExampleShader.class.st b/Diya/DiyaExampleShader.class.st index 293f780..12c7df5 100644 --- a/Diya/DiyaExampleShader.class.st +++ b/Diya/DiyaExampleShader.class.st @@ -17,7 +17,7 @@ void main() { vec2 mouse = u_mouse / u_resolution; vec2 px = (gl_FragCoord.xy/u_resolution); - gl_FragColor = vec4(px/mouse, abs(sin(u_time)), 1.0); + gl_FragColor = vec4(abs(sin(u_time)), px/mouse, 1.0); } ' ] diff --git a/Diya/DiyaFontManager.class.st b/Diya/DiyaFontManager.class.st index f8a2e1d..19fc70b 100644 --- a/Diya/DiyaFontManager.class.st +++ b/Diya/DiyaFontManager.class.st @@ -54,6 +54,7 @@ DiyaFontManager >> loadFace: face [ DiyaFontManager >> loadFile: aFile [ | path face i numfaces | path := aFile fullName convertToWithConverter: UTF8TextConverter new. + Transcript show: 'Loading font file ', path;cr. i := 0. numfaces := nil. [ face := FreeTypeFace basicNew @@ -61,6 +62,7 @@ DiyaFontManager >> loadFile: aFile [ index: i. face newFaceFromFile: path index: i. face loadFields. + Transcript show: 'Loaded font face ', face styleName;cr. numfaces ifNil: [ numfaces := face numFaces ]. self loadFace: face. i := i + 1. diff --git a/Diya/DiyaImageTex.class.st b/Diya/DiyaImageTex.class.st index 5b29cf7..c89440b 100644 --- a/Diya/DiyaImageTex.class.st +++ b/Diya/DiyaImageTex.class.st @@ -23,6 +23,7 @@ DiyaImageTex >> drop [ { #category : #'instance creation' } DiyaImageTex >> fromFile: path [ |form color index| + Transcript show: 'Loading texture from ', path fullName;cr. form := ImageReadWriter formFromFileNamed: path. data := FFIExternalArray externalNewType: GLubyte size:(form width) * (form height) * 4. LibC memset: data getHandle value: 0 size: data size.