mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +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 mouse = u_mouse / u_resolution;
|
||||||
vec2 px = (gl_FragCoord.xy/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 [
|
DiyaFontManager >> loadFile: aFile [
|
||||||
| path face i numfaces |
|
| path face i numfaces |
|
||||||
path := aFile fullName convertToWithConverter: UTF8TextConverter new.
|
path := aFile fullName convertToWithConverter: UTF8TextConverter new.
|
||||||
|
Transcript show: 'Loading font file ', path;cr.
|
||||||
i := 0.
|
i := 0.
|
||||||
numfaces := nil.
|
numfaces := nil.
|
||||||
[ face := FreeTypeFace basicNew
|
[ face := FreeTypeFace basicNew
|
||||||
@ -61,6 +62,7 @@ DiyaFontManager >> loadFile: aFile [
|
|||||||
index: i.
|
index: i.
|
||||||
face newFaceFromFile: path index: i.
|
face newFaceFromFile: path index: i.
|
||||||
face loadFields.
|
face loadFields.
|
||||||
|
Transcript show: 'Loaded font face ', face styleName;cr.
|
||||||
numfaces ifNil: [ numfaces := face numFaces ].
|
numfaces ifNil: [ numfaces := face numFaces ].
|
||||||
self loadFace: face.
|
self loadFace: face.
|
||||||
i := i + 1.
|
i := i + 1.
|
||||||
|
@ -23,6 +23,7 @@ DiyaImageTex >> drop [
|
|||||||
{ #category : #'instance creation' }
|
{ #category : #'instance creation' }
|
||||||
DiyaImageTex >> fromFile: path [
|
DiyaImageTex >> fromFile: path [
|
||||||
|form color index|
|
|form color index|
|
||||||
|
Transcript show: 'Loading texture from ', path fullName;cr.
|
||||||
form := ImageReadWriter formFromFileNamed: path.
|
form := ImageReadWriter formFromFileNamed: path.
|
||||||
data := FFIExternalArray externalNewType: GLubyte size:(form width) * (form height) * 4.
|
data := FFIExternalArray externalNewType: GLubyte size:(form width) * (form height) * 4.
|
||||||
LibC memset: data getHandle value: 0 size: data size.
|
LibC memset: data getHandle value: 0 size: data size.
|
||||||
|
Loading…
Reference in New Issue
Block a user