kbranigan / simple-opengl-image-library Goto Github PK
View Code? Open in Web Editor NEWSimple image uploader primarily for OpenGL
Home Page: http://lonesock.net/soil.html
Simple image uploader primarily for OpenGL
Home Page: http://lonesock.net/soil.html
https://www.opengl.org/sdk/docs/man3/xhtml/glGetString.xml
GL_EXTENSIONS
has been deprecated as a paremeter to glGetString
. All calls to glGetString( GL_EXTENSIONS )
fail under OpenGL 3+ with error GL_INVALID_ENUM
. This breaks all query_x_capability functions... which breaks most of SOIL.
Apparently, the correct approach is now to iterate over and compare each extension substring using glGetStringi( GL_EXTENSIONS, i )
.
SOIL only supports narrow strings when loading images, but it should accept wide strings to allow for filenames with different characters than just English. Thanks.
Hi, I am using SOIL(great lib by the way, big thumb up) to load images into memory, but from that point on I handle all my stuff manually. I am also doing memory handling myself with stack allocators etc. At this point I would love to be able to tell SOIL to read memory in my given pre-allocated cpu buffer.
This is due to avoid an extra copy from "SOIL memory" to my preallocated memory.
Of course I don't think this is particularly simple task, mainly because I might not know upfront the size of the image so my questions are the following:
I don't know much about image storage format, but do images have their size in the header? that can be queried fairly cheaply, to let me allocate the buffer and then have SOIL write in my memory?
Would you be up for a discussion about that? If so I would like to help on the matter.
Just bear in mind I am here mainly for a discussion of the topic, is not a feature request, loading texture happens async and doesn't happen on a frame bases so is not really a critical path of the code, and I can totally live with the extra copy, that s why I would like to see if you think is something that might be useful, and if so how much work you think it can be.
Cheers
M.
I am currently hitting what it looks like some kind of race condition inside stbi_load. basically at random a deep assertion gets fired inside stbi_load, I bypassed soil and used the latest stb_image.h file and the problem looks like is gone. might be worth to update the implementation? also right now it is just an header file, should not be much of an issue?
M.
In
Simple-OpenGL-Image-Library/Makefile
Line 16 in 4fff135
and in Makefile:
Simple-OpenGL-Image-Library/Makefile
Line 42 in 4fff135
CXX is for g++ should be CC and CFLAGS and better to use ?=
This can conflict when doing make CXX=g++
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.