norbert Posted October 2, 2011 Share Posted October 2, 2011 here an example code. the text is displayed on the head. one has an idea what I'm doing wrong? Framework leadwerks.engine Import "C:\Leadwerks Engine SDK\BMX\Framework\Framework.bmx" RegisterAbstractPath("C:\Leadwerks Engine SDK\") Graphics 1024, 768 Global fw:TFramework = CreateFramework() If Not fw RuntimeError "Failed to initialize engine." fw_buffer = CurrentBuffer() cam = fw.Main.camera CameraRange( cam , 0.1, 100000.0 ) leer1_buffer = CreateBuffer(512,512,BUFFER_COLOR ) leer1 = GetColorBuffer:TTexture( leer1_buffer ) While Not KeyHit(KEY_ESCAPE) fw.Update() fw.Render() SetBuffer(leer1_buffer) SetColor( vec4(2,255,255,1) ) DrawText( "test123", 10, 10 ) SetBuffer(fw_buffer) DrawImage( leer1,1, 1, -1,-1) Flip() Wend thanks norbert Quote Link to comment Share on other sites More sharing options...
paramecij Posted October 2, 2011 Share Posted October 2, 2011 I don't know if I understand you correctly but you might try this.. DrawImage( texture, 0, HEIGHT, WIDTH, -HEIGHT); Quote Link to comment Share on other sites More sharing options...
norbert Posted October 2, 2011 Author Share Posted October 2, 2011 hi paramecij thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.