Giter Club home page Giter Club logo

Comments (8)

Dgame avatar Dgame commented on May 24, 2024

Yes, it should. As far as I know it was already tested on Linux. I've unfortunately currently no Linux here.

from dgame.

MarisaLovesUsAll avatar MarisaLovesUsAll commented on May 24, 2024

I successfully compiled DGame under Linux Mint 15, but there was an error in code ("Function is not callable using argument types ... ". Function with [int] in arguments is used with [long] or [ulong]). These errors was solved with "cast (int)".
I hope I can test DGame soon.

from dgame.

Dgame avatar Dgame commented on May 24, 2024

Could be, size_t is ulong on Linux and uint under Windows. So if you could post the complete error and the files which are affected I can fix this soon.
Tomorrow I will write as soon as possible the missing documentation and I hope I can update tomorrow evening the complete docu. Dgame was completly improved local.
But until now my holidays was full of exams. Tomorrow is the last.

from dgame.

MarisaLovesUsAll avatar MarisaLovesUsAll commented on May 24, 2024

Error (there are several same errors):
/home/lunar/Projects/libs/Dgame/Math/Rect.d(249): Error: function pointer SDL_EnclosePoints (const(SDL_Point), int, const(SDL_Rect), SDL_Rect) is not callable using argument types (SDL_Point_, ulong, typeof(null), SDL_Rect*)

I don't know, maybe this changes is't right :)

VorbisFile.d:
bytes = cast(uint)ov_read(&oggFile, //cast(uint) added by MarisaLovesUsAll
Surface.d:
SDL_FillRects(this._target.ptr, ptr, cast(int) rects.length, key); // cast(int) added by MarisaLovesUsAll
TileMap.d:
ushort dim = calcDim(cast(int)used.length, this._tmi.tileWidth); // cast(int) added by MarisaLovesUsAll
Rect.d:
SDL_EnclosePoints(sdl_points, cast(int) points.length, null, rect.ptr); //cast(int) added by MarisaLovesUsAll
StaticBuffer.d:
glDrawArrays(ptype, start, cast(int) count); //cast(int) added by MarisaLovesUsAll
glDrawElements(ptype, cast(int) count, GL_UNSIGNED_INT, &indices[0]); //cast(int) added by MarisaLovesUsAll
end ? cast(uint) end : cast(uint) indices.length, //cast(uint) added by MarisaLovesUsAll
cast(uint) count, //cast(uint) added by MarisaLovesUsAll

from dgame.

Dgame avatar Dgame commented on May 24, 2024

All right, good catch. I will fix/bypass them tomorrow. It's a bit difficult that D's array length is size_t...

from dgame.

Dgame avatar Dgame commented on May 24, 2024

Solved. I will upload my new Version. Good new stuff comes with it. Documentation follows as soon as possible.
It's possible, that such errors are also in the new version. If so, please report it here.

from dgame.

Dgame avatar Dgame commented on May 24, 2024

Any further problems/errors?

from dgame.

Dgame avatar Dgame commented on May 24, 2024

Dgame works on Linux. Therefore I close this issue.

from dgame.

Related Issues (20)

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.