|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-1-29. : 6:06 am] O)FaRTy1billion[MM] -- ... Most just call a different one changing a few things, but still.[2016-1-29. : 6:00 am] O)FaRTy1billion[MM] -- They'd just be copypasted but with the 1 line changed that you have as an if currently ;o[2016-1-29. : 6:00 am] O)FaRTy1billion[MM] -- Like in current chkd place a left and a right door, that's where flipped is used[2016-1-29. : 5:59 am] O)FaRTy1billion[MM] -- Probably because you don't use it, but units are drawn flipped sometimes[2016-1-29. : 5:59 am] jjf28 -- I don't consider calling the function with a written in "false" for the param each time using it ![]() [2016-1-29. : 5:58 am] O)FaRTy1billion[MM] -- SC has separate flip functions, I think I might re-add the flip parameter and get rid of that because it's super redundant[2016-1-29. : 5:53 am] O)FaRTy1billion[MM] -- And the typedef needs to be like that because it's referenced in classes that aren't part of the graphics class[2016-1-29. : 5:52 am] O)FaRTy1billion[MM] -- I'm going to rename the functions, that's just what they were listed as in the bw map from bwapi or whatever[2016-1-29. : 5:52 am] O)FaRTy1billion[MM] -- with = { { DRAW_NORMAL, imageRenderFxn0_0, imageRenderFxn0_1 }, (etc)[2016-1-29. : 5:51 am] O)FaRTy1billion[MM] -- Also what I was saying I hope nobody yells at me for was: static constexpr const struct { int id; // Reference only, I guess RenderFunction norm; RenderFunction flip; } imgRenderFxns[18][2016-1-29. : 5:50 am] O)FaRTy1billion[MM] -- x,y are same as your UnitXC and YC, grpRect is stuff that SC calculates before calling that you calculate in the function, and ColoringData is a bunch of shit SC throws around for certain draw functions[2016-1-29. : 5:50 am] jjf28 -- wtf, you can typedef a function pointer that must belong to a specific class? xD[2016-1-29. : 5:49 am] O)FaRTy1billion[MM] -- typedef void (Graphics::*RenderFunction)(ChkdBitmap& bitmap, int x, int y, GRP *grp, int frame, RECT *grpRect, ColoringData colorData); Is there anything I should include instead of reading from Graphics variables? ![]() [2016-1-29. : 5:42 am] jjf28 -- ya know, unless I want to use EUPs lobby hacks and key hostages to psedo-admin BNET ![]() [2016-1-29. : 5:41 am] O)FaRTy1billion[MM] -- ya, I just like reading directly from mpqs .. so much cleaner ![]() [2016-1-29. : 5:41 am] jjf28 -- if we have the font files I doubt I'd have much use for the decrypter[2016-1-29. : 5:40 am] O)FaRTy1billion[MM] -- I was considering adding code to read them, but the code I have I promised DoA I wouldn't share, and especially on open projects, since it decrypts a lot more than fonts ;o[2016-1-29. : 5:40 am] jjf28 -- there wasn't originally a graphics class, those methods were moved inside later[2016-1-29. : 5:40 am] O)FaRTy1billion[MM] -- You pass so many things that are already visible variables. Is that on purpose? ![]() [2016-1-29. : 5:37 am] O)FaRTy1billion[MM] -- o. I think I'll just use the class screenLeft/Top/Width/Height ones instead of passing them as arguments like you did[2016-1-29. : 5:35 am] jjf28 -- pretty sure my functions are just obfuscated or cleaned up versions of yours ![]() [2016-1-29. : 5:34 am] O)FaRTy1billion[MM] -- I'm trying to figure out what I need to add in my render function typedef ![]() [2016-1-29. : 5:31 am] O)FaRTy1billion[MM] -- Except that's fine. The function that calls it has the code for that, so it makes little difference[2016-1-29. : 5:31 am] O)FaRTy1billion[MM] -- The only thing you do really different is passing the whole grp, SC passes the GPR frame, but yours doesn't work like that[2016-1-29. : 5:25 am] O)FaRTy1billion[MM] -- cool, your code is very similar to how SC does it, which makes it very easy ![]() [2016-1-29. : 5:22 am] O)FaRTy1billion[MM] -- ChkdBitmap& bitmap, u16 &bitWidth, u16 &bitHeight, s32 &xStart, s32 &yStart is bitmap the buffer, bit width/height the dimensions, and is x/ystart like the screen position?[2016-1-29. : 5:18 am] jjf28 -- i'll try em but historically it means the git operations are 80% harder[2016-1-29. : 5:18 am] O)FaRTy1billion[MM] -- Does htat just mean it compiles them separate, but included in the solution or whatever?[2016-1-29. : 5:16 am] Doodle77 -- jjf28 check it out: https://github.com/mdejean/Chkdraft/tree/submodule[2016-1-29. : 5:08 am] O)FaRTy1billion[MM] -- should I work on homework that's due in 25 hours or chkd draw routines? ![]() [2016-1-29. : 4:49 am] Corbo -- FaRTy1billionFaRTy1billion shouted: Corbo I think they are generally square i just realised that. I am making my own atm.[2016-1-29. : 4:49 am] Corbo -- jjf28jjf28 shouted: hard to say, when I look at you these days I find it hard to see past the evil Fair enough ;o[2016-1-29. : 4:48 am] O)FaRTy1billion[MM] -- I wanna do more chkd graphics stuff, but I should ptobably do homework[2016-1-29. : 4:47 am] O)FaRTy1billion[MM] -- CorboCorbo shouted: What's a GRP that's not a square I think they are generally square[2016-1-29. : 4:47 am] jjf28 -- hard to say, when I look at you these days I find it hard to see past the evil |