Re: Simple Raylib Example

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hey, I get an error when I try to load texture using raylib. Anyone knows what is causing this problem?

C:\Euphoria4_1\Projects\Euraylib-master\Euraylib-master\Euraylib.ew:4250 in function gLoadTexture() 
c_proc/c_func: bad routine number (-1) 

without warning 
 
include std/machine.e 
include std/convert.e 
 
include Euraylib.ew 
--include raylibshim.e 
 
constant width = 800 
constant height = 450 
 
atom black = bytes_to_int({0,0,0,0}) 
atom white = bytes_to_int({255,255,255,255}) 
atom yellow = bytes_to_int({255,255,0,255}) 
atom blue = bytes_to_int({0,0,255,255}) 
 
InitWindow(width,height,"Simple Texture") 
 
gLoadTexture("raylib_logo.png")  
 
sequence texture_info = {3,256,256,1,0} 
 
while not WindowShouldClose() do 
 
	BeginDrawing() 
 
	ClearBackground(blue) 
	 
	DrawText("This is a Texture",1,1,20,yellow) 
	 
	DrawTexture(texture_info,10, 50,white) 
	 
	EndDrawing() 
	 
end while 
 
CloseWindow() 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu