mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 03:18:22 +01:00
Add log messages
This commit is contained in:
parent
fcc7b13d28
commit
653fe07692
@ -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);
|
||||
}
|
||||
'
|
||||
]
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user