GithubHelp home page GithubHelp logo

directorscut82 / glraw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cginternals/glraw

0.0 2.0 0.0 19.05 MB

C++ library that converts Qt supported images to OpenGL raw format.

License: MIT License

CMake 32.09% GLSL 0.47% C++ 66.44% C 1.00%

glraw's Introduction

glraw logo

glraw is an utility that converts Qt-supported images into an OpenGL-compatible raw format. glraw reduces the process of loading textures at run-time to a minimum: A file-content dump into GPU memory. glraw is a cross-platform library licenced under the MIT license.

The current release is glraw-1.0.3.

Features

With glraw you can preconvert your texture assets and load them without the need of any image library. The generated raw files can easily be read. For this, glraw also provides a minimal Raw-File reader that you can either source-copy or integrate as C++ library into your project. Image to OpenGL texture conversion can be done either by glraws command line interface, e.g., within an existing tool-chain, or at run-time with glraw linked as asset library (requires linking Qt).

Using the command line interface to create, e.g., an uncompressed 8bit rgb-texture looks like this: >glraw-cmd -f GL_RGB -t GL_UNSIGNED_BYTE image.png

When converting an input image, glraw allows basic operations on the input-image and gives you full control over format and type of your targeted asset specification:

  • Output format and type: Choose either a format and a type (e.g., GL_RGB and GL_UNSIGNED_BYTE) or one of the supported compressed formats (e.g., GL_COMPRESSED_RGBA_S3TC_DXT3_EXT).

  • Mirroring: Mirror images horizontally or vertically.

  • Scaling: Scale your images either to a choosen size in pixels or by a factor.

  • Arbitrary image processing: Provide your own GLSL shader for, e.g., blurring, sharpening, color conversion, or data encoding.

  • Extensible file header: glraw supports two formats:

    • .raw as a true raw format, where all asset meta information is either encoded in the file name or aggreed with the importer.
    • .glraw, which extends the raw data by an arbitrary file header of binary key-value pairs (e.g., width, height, compression).

Further Reading

Status

build status (@hourly for master): status

Dependencies

The following dev-libraries and programs need to be provided for correct project configuration:

glraw's People

Contributors

mjendruk avatar cgcostume avatar rlux avatar scheibel avatar

Watchers

James Cloos avatar directorscut82 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.