Recent

Author Topic: Full Screen Scrolling Text Info/Ideas?  (Read 2833 times)

Josh

  • Hero Member
  • *****
  • Posts: 1454
Full Screen Scrolling Text Info/Ideas?
« on: June 15, 2015, 04:17:18 pm »
Hi
I have been trying to scroll some documents that a full screen, slowly up the screen (smoothly) that is not resource intensive.

I have tried placing Timage in TPanel and TBCPanel, and adjusting image/top to a negative figure to scroll, this does work but uses a lot of resources.

Is there a better solution that anyone can think of, I have not tried the recent opengl routines at all, could openGl via BGABitmap do what i require, and keep resources to a minimum.

Any other ideas will greatly be explored, but I thought I would ask the general question; in case someone has managed a similar task.

Thanks in advance.
Josh
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

lainz

  • Hero Member
  • *****
  • Posts: 4741
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Full Screen Scrolling Text Info/Ideas?
« Reply #1 on: June 15, 2015, 06:44:31 pm »
You can load resources via TBGLBitmap and then convert to texture format to render in OpenGL.

There is a texture size limit, If you get that error you can split your bitmap into separated textures and then draw them one by one.

In this forum you can look at some threads with code to already start using BGRAOpenGL. Or just see the demo game that comes with the library.

circular

  • Hero Member
  • *****
  • Posts: 4468
    • Personal webpage
Re: Full Screen Scrolling Text Info/Ideas?
« Reply #2 on: June 15, 2015, 10:02:03 pm »
When using standard BGRABitmap routines, the faster is to have a TBGRABitmap object that you draw directly on the form, or on a paintbox, with a negative Y coordinate.

With OpenGL routines, you can use a texture and then, yes scroll the full screen really fast by drawing it with a negative Y coordinate. There is indeed a texture size limit. A size of 1024 is supported 99.95% of the time.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018