You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicGPU(){_logWriter=newLogWriter(typeof(GPU));// NOTE: if you use 3D array instead of jagged one, you could do this:// _tilemap = new byte[0x200, 0x8, 0x8];_tilemap=newbyte[0x200][][];for(vari=0;i<0x200;i++){_tilemap[i]=newbyte[0x8][];for(varj=0;j<0x8;j++){_tilemap[i][j]=newbyte[0x8];}}_vram=newint[0x2000];//8192_oam=newbyte[SCREEN_WIDTH];_reg=newint[1];thrownewNotImplementedException("// TODO: find out what is the size of the _reg");_scanrow=newbyte[SCREEN_WIDTH];_palette=newPalette(COLORS_IN_PALETTE);_objectData=newObjectData[40];// TODO: you also might remove every hardcoded values from here.thrownewNotImplementedException("// TODO: find out where ObjectData's size (40) comes from.");_screen=newScreen(SCREEN_WIDTH,SCREEN_HEIGHT,COLORS_IN_PALETTE);// TODO: maybe you can use this instead of constants?}
The text was updated successfully, but these errors were encountered:
Code snippet GPU's constructor:
The text was updated successfully, but these errors were encountered: