Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Is DGame works on Linux? #4

Closed
MarisaLovesUsAll opened this issue Sep 17, 2013 · 8 comments
Closed

Is DGame works on Linux? #4

MarisaLovesUsAll opened this issue Sep 17, 2013 · 8 comments
Labels

Comments

@MarisaLovesUsAll
Copy link

No description provided.

@Dgame
Copy link
Owner

Dgame commented Sep 17, 2013

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

@MarisaLovesUsAll
Copy link
Author

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.

@Dgame
Copy link
Owner

Dgame commented Sep 18, 2013

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.

@MarisaLovesUsAll
Copy link
Author

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

@Dgame
Copy link
Owner

Dgame commented Sep 18, 2013

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

@Dgame
Copy link
Owner

Dgame commented Sep 19, 2013

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.

@Dgame
Copy link
Owner

Dgame commented Sep 19, 2013

Any further problems/errors?

@Dgame
Copy link
Owner

Dgame commented Sep 22, 2013

Dgame works on Linux. Therefore I close this issue.

@Dgame Dgame closed this as completed Sep 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants