Git Product home page Git Product logo

gishgles's People

Contributors

asmageddon avatar blinry avatar chewi avatar etam avatar frozencow avatar jorisvddonk avatar pickle avatar shish avatar spinkham avatar svenstaro avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

gund serg-z

gishgles's Issues

Visual Studio express 2013

Hi Pickle,

Havng a hard time compiling this game in Visual Studio 2013. The file in png.h is missing which is called from texture.c in Videos folder. Downloaded the one from internet but gave heaps of errors. Can you please help compile it ?

Linux build failing

Hi Pickle! Thanks for all the great software.

A build with devuan and gcc-8 and
libopenal-dev is already the newest version (1:1.19.1-1).
libvorbis-dev is already the newest version (1.3.6-2).
libsdl1.2-dev is already the newest version (1:1.2.15-7+2m7.1)

is failing with

/pr/games/GishGLES/video/texture.c: In function ‘loadtexturepng’:
/pr/games/GishGLES/video/texture.c:98:14: error: dereferencing pointer to incomplete type ‘png_info’ {aka ‘struct png_info_def’}
  if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
              ^~

Websearch yields:

The png_info struct was removed from the png.h in 1.5.0 and now you should use this pointer with the png_get_* and png_set_* functions.

As specified in libpng manual:

"The png_info structure is designed to provide information about the PNG file. At one time, the fields of png_info were intended to be directly accessible to the user. However, this tended to cause problems with applications using dynamically loaded libraries, and as a result a set of interface functions for png_info (the png_get_() and png_set_() functions) was developed, and direct access to the png_info fields was deprecated.."

For example:

png_uint_32 height;
height = png_get_image_height( png_ptr,  info_ptr);

Is this something you can fix-up?

Cheers!

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.