Results 1 to 6 of 6

Thread: Texture Loading and acceleration

  1. #1
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Texture Loading and acceleration

    Refreshing my memory on thinBasic, Oxygen and TBGL... I thought clarification in the documentation could help new comers.

    Just some suggestions.

    One is the idea of texture loading. It is confusing having texture loading in GDIp module, TBGL module and on the forums freeImage texture loading.
    GDIp seems to support all the formats without the need of an additional dll like freeImage.dll.

    It would be nice if TBGL used GDIp texture loading behind the scenes to benefit from the useful additional formats like png and jpg. If not possible, then perhaps in the help under each type of texture loading function, links to the other functions were provided as is with other keywords.

    I thought the Canvas was accelerated, but in reading some posts it seems it is not. So in the help it would be neat if any module where graphics are involved from charting to tbgl that each module identified if the graphics would be accelerated by the graphics cards or not.

    I found the starting tutorial to be very useful to get back up to speed with the basics, great job!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Kent,

    for the purpose of easy texture loading, I prepared SmartTexture include, you may give it a try!

    GDI Plus works from Windows XP above, older Windows do not support it. I think it is not that big issue these days, but it was the main motivation why it wasn't used in the past.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404
    Excellent Petr, perhaps such useful files should be linked to in the help files or links provided in 1 sticky easy thread to find somewhere on the forums.

    Thanks I will be using this one a lot!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  4. #4
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    About file extensions for thinBasic

    Petr, I noticed you named SmartTexture with an extension of tBasicu, which I know stands for unit file.
    Why is this a unit file and not an include file (tBasici) or better yet what is the difference between a unit and include file?
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  5. #5
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Kent,

    great question!

    tBasicU
    I use it for self contained units, that means, that whole file is basically single type with functions, all encapsulated in that type (like class).

    tBasicI
    I use these for header includes, that is, files which contain DECLAREs, or generally intefaces to third party libraries.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  6. #6
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404
    Thanks Petr, nice clear explanation. I will rename my files accordingly.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Similar Threads

  1. SmartTexture - unit for texture loading
    By Petr Schreiber in forum TBGL module by Petr Schreiber
    Replies: 0
    Last Post: 28-03-2016, 19:59
  2. FBGFX Plasma acceleration using asmosphere
    By Petr Schreiber in forum Machine Code
    Replies: 17
    Last Post: 23-04-2008, 23:07
  3. B3D loading functions
    By Michael Hartlef in forum thinBasic vaporware
    Replies: 10
    Last Post: 10-02-2008, 21:18
  4. TBGL_LoadTexture and loading
    By Michael Clease in forum TBGL General
    Replies: 13
    Last Post: 03-06-2007, 12:29
  5. File Loading Question
    By catventure in forum thinBasic General
    Replies: 17
    Last Post: 10-12-2005, 21:50

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •