Hendricks266, on 27 August 2018 - 10:29 AM, said:
Am I drawing the wrong conclusion?
Since what time Ken's build engine calliing eduke32 engine?
I completed refactor and analyze my code of Engine.java today...look:
public int getpalookup(int davis, int dashade) //jfBuild
public int animateoffs(short tilenum, int nInfo) { //jfBuild + gdxBuild
public void initksqrt() { //jfBuild
public void calcbritable() { //jfBuild
public void loadtables() throws Exception { //jfBuild + gdxBuild
public void initfastcolorlookup(int rscale, int gscale, int bscale) { //jfBuild
public void loadpalette() throws Exception //jfBuild + gdxBuild
public byte getclosestcol(int r, int g, int :unsure: { //jfBuild
public int insertspritesect(int sectnum) //jfBuild
public short insertspritestat(int newstatnum) //jfBuild
public int insertsprite(int sectnum, int statnum) //jfBuild
public int deletesprite(int spritenum) //jfBuild
public short changespritesect(int spritenum, int newsectnum) //jfBuild
public short changespritestat(int spritenum, int newstatnum) //jfBuild
public short deletespritesect(int spritenum) //jfBuild
public short deletespritestat (int spritenum) //jfBuild
public boolean lintersect(int x1, int y1, int z1, int x2, int y2, int z2, int x3, //jfBuild
public boolean rintersect(int x1, int y1, int z1, int vx, int vy, int vz, int x3, //jfBuild
public void keepaway(int x, int y, int w) { //jfBuild
public int raytrace(int x3, int y3, int x4, int y4) { //jfBuild
public void InitArrays() //gdxBuild
public Engine(Message message, BAudio audio, boolean releasedEngine) throws Exception { //gdxBuild
public void uninit() //gdxBuild
public void initspritelists() //jfBuild
public int drawrooms(float daposx, float daposy, float daposz, float daang, float dahoriz, int dacursectnum) { //eDuke32 visibility set
public void drawmasks() { //gdxBuild
render.drawmasks();
}
public void drawmapview(int dax, int day, int zoome, int ang) { //gdxBuild
render.drawmapview(dax, day, zoome, ang);
}
public void drawoverheadmap(int cposx, int cposy, int czoom, short cang) { //gdxBuild
render.drawoverheadmap(cposx, cposy, czoom, cang);
}
public int loadboard(String filename, int[] daposx, int[] daposy, int[] daposz, //jfBuild + gdxBuild
public int loadoldboard(int fil, int[] daposx, int[] daposy, int[] daposz, //gdxBuild
public boolean setgamemode(int davidoption, int daxdim, int daydim) { //jfBuild + gdxBuild
public void inittimer(int tickspersecond) { //jfBuild
public void sampletimer() { //jfBuild
public long getticks() { //gdxBuild
public void registerFade(String fadename, FadeEffect effect) { //gdxBuild
public void updateFade(String fadename, int intensive) //gdxBuild
public void showfade() { //gdxBuild
render.palfade(fades);
}
public void loadpic(String filename) //gdxBuild
public void setpicsiz(int tilenum) //jfBuild
public int loadpics(String filename) { //jfBuild
public byte[] loadtile(int tilenume) { //jfBuild
public byte[] allocatepermanenttile(int tilenume, int xsiz, int ysiz) { //jfBuild
public int clipinsidebox(int x, int y, short wallnum, int walldist) { //jfBuild
public int clipinsideboxline(int x, int y, int x1, int y1, int x2, int y2, int walldist) { //jfBuild
public int inside(int x, int y, short sectnum) { //jfBuild
public short getangle(int xvect, int yvect) { //jfBuild + gdxBuild
public int ksqrt(int a) { //jfBuild + gdxBuild
public short setsprite(int spritenum, int newx, int newy, int newz) //jfBuild
public int nextsectorneighborz(int sectnum, int thez, int topbottom, int direction) { //jfBuild
public int cansee(int x1, int y1, int z1, short sect1, int x2, int y2, int z2, short sect2) { //eduke32 sectbitmap
public int hitscan(int xs, int ys, int zs, short sectnum, int vx, int vy, int vz, //jfBuild
public void nextpage() { //gdxBuild
Console.draw();
render.nextpage();
audio.update();
}
public int neartag(int xs, int ys, int zs, short sectnum, short ange, Neartag near, int neartagrange, int tagsearch) { //jfBuild
public long qdist(long dx, long dy) { //gdxBuild
public void dragpoint(int pointhighlight, int dax, int day) { //jfBuild
public int lastwall(int point) { //jfBuild
public void addclipline(int dax1, int day1, int dax2, int day2, int daoval) { //jfBuild
public int clipmove(int x, int y, int z, int sectnum, //jfBuild
public int pushmove(int x, int y, int z, int sectnum, //jfBuild
public short updatesector(int x, int y, int sectnum) { //jfBuild
public short updatesectorz(int x, int y, int z, short sectnum) { //jfBuild
public void rotatepoint(int xpivot, int ypivot, int x, int y, short daang) { //jfBuild
public void srand(int seed) //gdxBuild
public int getrand() //gdxBuild
public int krand() { //jfBuild
public int rand() //gdxBuild
public void getzrange(int x, int y, int z, short sectnum, //jfBuild
public void setaspect_new() { //eduke32 aspect
public void setview(int x1, int y1, int x2, int y2) { //jfBuild
public void setaspect(int daxrange, int daaspect) { //jfBuild
public void rotatesprite(int sx, int sy, int z, int a, int picnum, //gdxBuild
int dashade, int dapalnum, int dastat,
int cx1, int cy1, int cx2, int cy2) {
render.rotatesprite(sx, sy, z, a, picnum, dashade, dapalnum, dastat, cx1, cy1, cx2, cy2);
}
public void makepalookup(int palnum, byte[] remapbuf, int r, int g, int b, int dastat) //jfBuild
public void setbrightness(int dabrightness, byte[] dapal, int flags) { //jfBuild
public void setpalettefade(int r, int g, int b, int offset) { //jfBuild
public void clearview(int dacol) { //gdxBuild
render.clearview(dacol);
}
public void setviewtotile(int tilenume, int xsiz, int ysiz) //jfBuild
public void setviewback() //jfBuild
public void preparemirror(int dax, int day, int daz, float daang, float dahoriz, int dawall, int dasector) { //jfBuild
public int sectorofwall(short theline) { //jfBuild
public int getceilzofslope(short sectnum, int dax, int day) { //jfBuild
public int getflorzofslope(short sectnum, int dax, int day) { //jfBuild
public void getzsofslope(short sectnum, int dax, int day) { //jfBuild
public void alignceilslope(short dasect, int x, int y, int z) { //jfBuild
public void alignflorslope(short dasect, int x, int y, int z) { //jfBuild
public int loopnumofsector(short sectnum, short wallnum) { //jfBuild
public void setfirstwall(short sectnum, short newfirstwall) { //jfBuild
public void printext256(int xpos, int ypos, int col, int backcol, char[] name, int fontsize) { //gdxBuild
render.printext(xpos, ypos, col, backcol, name, fontsize);
}
public void printchar256(int xpos, int ypos, int col, int backcol, char ch, int fontsize) { //gdxBuild
render.printchar(xpos, ypos, col, backcol, ch, fontsize);
}
public String screencapture(String fn) { //jfBuild + gdxBuild
public byte[] screencapture(int width, int heigth) { //gdxBuild
public byte[] getframe(int width, int heigth) { //gdxBuild
public void savetexture(byte[] pixels, int tw, int th, int w, int h, int num) { //gdxBuild
public int setrendermode(Renderer render) { //gdxBuild
public Renderer getrender() //gdxBuild
public void invalidatetile(int tilenume, int pal, int how) { //jfBuild
public void copytilepiece(int tilenume1, int sx1, int sy1, int xsiz, int ysiz, //jfBuild
public void setgotpic(int tilenume) //jfBuild
public boolean showMessage(String header, String text, boolean send) //gdxBuild
public static KeyInput getInput() //gdxBuild
public void handleevents() //gdxBuild
public void initkeys() //gdxBuild
public void printfps() //eduke32
public BAudio getAudio() //gdxBuild
I compared my code with jfbuild and eduke32's engine.c, but a lot of main engine's methods not from jfduke or eduke - it's from original build by Ken
So, as you can see, I'm using only minor fixes from eduke32 code, like eduke32 using my some fixes.
public void printfps() //eduke32
public void setaspect_new() { //eduke32 aspect
public int drawrooms() { //eDuke32 visibility set
public int cansee() { //eduke32 sectbitmap
drawrooms using a few eduke's variables for polymost shades and fog
printfps - is a code from zdoom
setaspect - widescreen support
cansee - minor optimization?
And as we talking about interpolation, should I say, that this eduke32's fixes don't affect to smoothfactor of interpolation?