Questions tagged [devil]

Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use

Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats.

100 questions
8
votes
5 answers

Loading a BMP into an OpenGL textures switches the red and blue colors. (C++/Windows)

I'm trying to load a bitmap into an OpenGL texture and display it to the screen, but when I do so, the red and blue values seem to switch (e.g.: a blue image appears orange, green images remain unchanged, etc..). This problem only exists when…
user98188
5
votes
1 answer

C++ DevIL function ilLoadImage - program exit, access violation

I've got a path to my file defined this way: const char* GROUND_TEXTURE_FILE = "objects/textures/grass.jpg"; And here is the function, which I use to load image: bool loadTexImage2D(const string &fileName, GLenum target) { ... // this will…
ketysek
  • 1,159
  • 1
  • 16
  • 46
5
votes
2 answers

Error 'IL_LIB_JPEG_ERROR 1506' using DevIL

I'm writing an Android app that uses DevIL for image processing. I got the port of DevIL and its dependent libraries from this project. I edited and extracted what I needed. It compiles fine, and the library works, but it doesn't when I try to load…
Asiimwe
  • 2,199
  • 5
  • 24
  • 36
5
votes
1 answer

devil not loading images with linux build

I was having issues getting an image to load in to Devil so I have provided exactly how I built the libs and how I am trying to use it. Downloaded Devel source from their website. $ unzip DevIL-1.7.8.zip $ mkdir devil $ cd…
Andrew
  • 1,764
  • 3
  • 24
  • 38
4
votes
2 answers

Use a 32-bit assembly in 64-bit environment

I am trying to integrate DevIL.NET into 3ds Max to automatically convert my images to a single format. To do so, I created a class library in C# that accepts a string and returns the new file path public static class FileConverter { public…
Marnix
  • 6,384
  • 4
  • 43
  • 78
3
votes
1 answer

Installing C++ library on Ubuntu

I must be a noob, always have trouble installing on Linux. I'm trying to install from: http://openil.sourceforge.net/download.php. So I followed the manual (http://openil.sourceforge.net/docs/index.php) using DevIL 1.7.8 tar.gz from the DL page. I…
Rooster
  • 1,267
  • 3
  • 15
  • 23
3
votes
10 answers

DevIL library files and dependencies

Okay, here's the thing. I have all the IL files I need, namely DevIL.dll DevIL.lib ILU.dll ILU.lib ILUT.dll ILUT.lib config.h config.h.in devil_cpp_wrapper.h devil_internal_exports.h il.h ilu.h ilu_region.h ilut.h ilut_config.h My project…
OddCore
  • 1,534
  • 6
  • 19
  • 32
3
votes
2 answers

Loading an image using DevIL and OpenGL in C++

As the title suggests, I am trying to load an image using DevIL, before passing it to OpenGL. I am using this piece of code as error control const char* filename = "back.bmp"; if (!ilLoadImage(filename)) { throw…
OddCore
  • 1,534
  • 6
  • 19
  • 32
3
votes
2 answers

Access violation when calling glTextureParameteri with OpenGL and DevIL

I'm trying to load an image with DevIL and then create a texture. I have a class named Texture, and I'm doing all this stuff in the constructor. A valid context has been created. I'm getting an access violation on the first call to…
Heiski
  • 111
  • 2
  • 10
3
votes
1 answer

No implementation found for native, java.lang.UnsatisfiedLinkError

Okay before you flag this as a duplicate I have tried the following No implementation found for native No implementation found for native Stitch No Implementation found for native in ndk No implementation found for native Lcom/jp/algi/ Android NDK…
Asiimwe
  • 2,199
  • 5
  • 24
  • 36
2
votes
1 answer

Issue with loading Images using DevIL and Visual Studio 2010

I have a question about using DevIL in VS 2010. I'm trying to load an image to apply as a texture to a sprite, but I can't seem to figure out how to add the image to project such that DevIL can find it. The call to ilLoadImage keeps returning…
Pat
  • 331
  • 1
  • 4
  • 16
2
votes
1 answer

Issue with texture loading using the DevIl library

I am working with the DevIl library and trying to use it to load a texture to OpenGL to apply to a sprite. The code is directly out of the C# Game Programming for Serious Game Design book (if that helps). The problem I'm having is with the…
Pat
  • 331
  • 1
  • 4
  • 16
2
votes
1 answer

DevIL and OpenGL in C++

I am writing a C++ OpenGL project using DevIL and I am getting compile-time errors while trying to work out how to load an image to use as a texture. So far I have this //Declarations const char* filename = "back.bmp"; ILboolean ilLoadImage(const…
OddCore
  • 1,534
  • 6
  • 19
  • 32
2
votes
1 answer

Write to file, but overwrite it if it exists with DevIL and REPA

I am using the DevIL library to read and write images. The problems is that I want to overwrite the file if it already exists. Here is my code: (RGB v) <- runIL $ readImage "/foo/foo.png" let rotated = (computeS $ batman v) :: Array F DIM3…
Hamburguesa66
  • 87
  • 1
  • 7
2
votes
1 answer

NDK, LOCAL_EXPORT_C_INCLUDES not working as expected

Right now I am working on a native Android project and I want to use DevIL. I don't want to put all the NDK code into one file, since DevIL needs multiple other libraries (libpng/libjpeg/...) and the Android.mk would end up being bloated. I created…
1
2 3 4 5 6 7