Re: Window Appears Briefly Then Disappears

new topic     » goto parent     » topic index » view thread      » older message » newer message
--without warning 
 
include std/machine.e 
include Euraylib.ew 
 
--atom width = 800, height = 600 
 
puts(1,"Got here\n") 
InitWindow(800,600,"Basic Win") 
 
puts(1,"Got here\n") 
 
	SetTargetFPS(30) 
 
while not WindowShouldClose()  do 
	 
	BeginDrawing() 
	 
	puts(1,"Got here\n") 
	 
	ClearBackground(0) 
	 
	EndDrawing() 
 
end while 
 
CloseWindow() 

From the command prompt 
Got here 
INFO: Initializing raylib 2.5 
INFO: Display device initialized successfully 
INFO: Display size: 1680 x 1050 
INFO: Render size: 800 x 600 
INFO: Screen size: 800 x 600 
INFO: Viewport offsets: 0, 0 
INFO: GLAD: OpenGL extensions loaded successfully 
INFO: OpenGL 3.3 Core profile supported 
INFO: GPU: Vendor:   NVIDIA Corporation 
INFO: GPU: Renderer: GeForce GTX 970/PCIe/SSE2 
INFO: GPU: Version:  3.3.0 NVIDIA 430.86 
INFO: GPU: GLSL:     3.30 NVIDIA via Cg compiler 
INFO: Number of supported extensions: 374 
INFO: [EXTENSION] DXT compressed textures supported 
INFO: [EXTENSION] ETC2/EAC compressed textures supported 
INFO: [EXTENSION] Anisotropic textures filtering supported (max: 16 
INFO: [EXTENSION] Mirror clamp wrap texture mode supported 
INFO: [TEX ID 1] Texture created successfully (1x1 - 1 mipmaps) 
INFO: [TEX ID 1] Base white texture loaded successfully 
INFO: [SHDR ID 1] Shader compiled successfully 
INFO: [SHDR ID 2] Shader compiled successfully 
INFO: [SHDR ID 3] Shader program loaded successfully 
INFO: [SHDR ID 3] Default shader loaded successfully 
INFO: Internal buffers initialized successfully (CPU) 
INFO: Internal buffers uploaded successfully (GPU) 
INFO: OpenGL default states initialized successfully 
INFO: [TEX ID 2] Texture created successfully (128x128 - 1 mipmaps) 
INFO: [TEX ID 2] Default font loaded successfully 

I tried adding in the puts(1,"Got here\n") and it appears InitWindow is where the problem. However in the command prompt, it says everything initialized successfully. Again, I haven't finished wrapping the library, but I thought a small program would be fine just to make sure it works. I also tried the While1 do, and it still appeared briefly, then closed.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu