0 Members and 1 Guest are viewing this topic.
It takes ≈ 6 seconds to start because it has to compute and store 76800 * 7 SINES and 76800 * 2 square roots in a table in order to get a decent execution speed
for this I reused part of a library I'm writing to deal with screen and pixels
My library handles cross-compatibility, so you can use the same *.tns file for both CX and non-CX calcs
It takes ≈ 6 seconds to start because it has to compute and store 76800 * 7 sines and 76800 * 2 square roots in a table in order to get a decent execution speed
In short, I don't really like the word "library" to describe bunch of code you reuse from one project to another.This is most likely called "toolkit". A library is attended to be distribued and used by others and as far as I can see you're not willing to release it as a standalone library.
So I wrote this library which I named nRayC, because it's an Nspire lib about RAYcasting to be used in C Although this library is mainly focused on raycasting, it's not its only use : I also included a bunch of functions, like pixel, line and even triangle (why not) drawing, tile detection, bitmaps loading and stuffs.Currently, the library features raycasting rendered by a unique function :void nRC_rayCasting(int *map, Vector player, ScreenPoint mapDimensions, Vector dir, Vector planeVec, uint16_t *textures, char *buffer)It also provides two structures as you can see, ScreenPoint and Vector. I don't release anything for now because I don't think it's ready to be released, but I attach a screenshot of what it can do
What Hayleia said. How can you judge me
when you know nothing about what I wrote ?
It's exactly the contrary. I only use nRayC's setPixel function.
Quote from: Matrefeytontias on June 23, 2013, 06:06:42 amWhat Hayleia said. How can you judge me Judging you ? Where is it question of judging people here ?
Well yeah, it's badly said, I meant judging what I'm doing. I don't like how you say :Quote from: Levak on June 22, 2013, 09:00:49 pmIn short, I don't really like the word "library" to describe bunch of code you reuse from one project to another.This is most likely called "toolkit". A library is attended to be distribued and used by others and as far as I can see you're not willing to release it as a standalone library.Without knowing that I only use a sole function of a whole engine that is already released.
And the reason why I'm not using nSDL (and not "boycotting", it's a great lib) is that I really like to know exactly what I'm doing, not only to make things work like I want them to, but also to understand concepts.