Results 1 to 1 of 1

Thread: SmartTexture - unit for texture loading

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

    Lightbulb SmartTexture - unit for texture loading

    Hi guys,

    loading PNG is long time on the list, so why not provide it now, with help of thinBasic unit?

    Where is the code?
    https://github.com/petrSchreiber/SmartTexture

    How can I use it?
    Please note the current implementation is in pre-release phase, targetted at testing.
    You can grab the files from releases page.

    How difficult it is to use?
    Not much After you download the includes, it can be as simple as:
    #include "smartTexture.tbasicu"
    
    ...
    
    dim t as smartTexture
    
    t.FromFile("C:\myImage.png")
    t.Make(1, %TBGL_Tex_MipMap)
    

    Petr
    Last edited by Petr Schreiber; 23-06-2016 at 20:16.
    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

Similar Threads

  1. Test Driven Development & Unit Testing for thinBASIC
    By Petr Schreiber in forum User files and/or user projects
    Replies: 11
    Last Post: 19-01-2014, 01:13
  2. HEAP_Extended-Unit
    By ReneMiner in forum General purpose scripts
    Replies: 0
    Last Post: 23-09-2013, 09:01
  3. Astronomical Unit (module) simple example for testing :)
    By largo_winch in forum thinBasic vaporware
    Replies: 1
    Last Post: 24-12-2011, 11:21
  4. Simple unit for UDT list in ThinBASIC
    By Petr Schreiber in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 3
    Last Post: 10-07-2010, 21:21
  5. TBGL_LoadTexture and loading
    By Michael Clease in forum TBGL General
    Replies: 13
    Last Post: 03-06-2007, 12:29

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
  •