That would be the frustrum port (It has frustrum in the file name - now I see) - that would have had the void graphic, that does manipulate vertices, and that does build a memblock and make meshes, ok
Yeah - Um... What was your question again?
haha
Um... The Video thing IS DEFINATELY cuz I just a class that takes 4 param in the very top: (jgc_main.cpp I think it calls:
JGC_GDK *GDK=new JGC_GDK(true,1024,768,32);
Which translates to:
//----------------------------------------------------------------------------
void JGC_DISPLAY::DisplayMode_Set(int p_iWidth, int p_iHeight, int p_iDepth){
//----------------------------------------------------------------------------
if((p_iWidth!=this->pvt_Width) || (p_iHeight!=this->pvt_Height) || (p_iDepth!=this->pvt_Depth)){
dbSetDisplayMode(this->pvt_Width=p_iWidth, this->pvt_Height=p_iHeight, this->pvt_Depth=p_iDepth);
};
};
//----------------------------------------------------------------------------
and
//----------------------------------------------------------------------------
void JGC_DISPLAY::Window_Set(bool p_bOn){
//----------------------------------------------------------------------------
if(p_bOn!=this->pvt_WindowOn){
if(this->pvt_WindowOn=(!this->pvt_WindowOn)){
dbSetWindowOn();
}else{
dbSetWindowOff();
};
};
};
//----------------------------------------------------------------------------
Followed by
dbSetWindowPosition(0,0);
all that is buried in the init code that does other stuff - but I'd thought I break it down to the GDK native stuff so you knew how I was init'ing the display.
P.S. Neat Trick... simple yet effective... you know that little graphic pic you uploaded?
Look for this piece of code (or did you already see this?):
JGC_MEMBLOCK *MB=new JGC_MEMBLOCK();
MB->ID=1;
dbMakeMemblock(MB->ID,((1024*4)+12));
int MPos=0;
MB->SetDword(MPos,32);MPos+=4;//width
MB->SetDword(MPos,32);MPos+=4;//Height
MB->SetDword(MPos,32);MPos+=4;//Depth
DWORD ImgData[]={
16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,255,255,255,255,255,255,255,255,255,255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,
16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,
16777215,16777215,16711935,0,16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,16777215,16777215,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,
16777215,16777215,0,16711935,16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,16777215,255,255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,
16777215,16777215,16777215,16777215,16711935,0,16777215,16777215,0,0,16777215,16777215,0,0,255,255,255,255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,
16777215,16777215,16777215,16777215,0,16711935,16777215,16777215,0,0,16777215,16777215,0,255,255,255,255,255,255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,0,0,16777215,16777215,16711935,0,16777215,16777215,0,0,255,255,255,255,255,255,255,255,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,0,0,16777215,16777215,0,16711935,16777215,16777215,0,0,16777215,16777215,16777215,255,255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,16777215,16777215,0,0,16777215,16777215,16711935,0,16777215,16777215,0,0,16777215,255,255,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,16777215,16777215,0,0,16777215,16777215,0,16711935,16777215,16777215,0,0,16777215,255,255,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,16711935,0,16777215,16777215,16777215,255,255,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,
16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,0,16711935,16777215,16777215,16777215,255,255,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,
255,16777215,16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,16711935,0,16777215,255,255,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,
255,16777215,16777215,16777215,0,0,16777215,16777215,0,0,16777215,16777215,0,16711935,16777215,255,255,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,
255,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,255,255,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,
255,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,
255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,
255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,
255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,
255,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,
8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,16777215,
8421504,8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,16777215,
8421504,8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,16777215,
8421504,16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,16777215,
16711935,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,8421504,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16711935,
};
int z=0;
for(z=0;z<4096;z++){
MB->SetDword(MPos,ImgData[z]);MPos+=4;
};
JGC::TestImg=(JGC_IMAGE*)JGC::ImageDL->AppendItem_FromMemblock(MB->ID);
delete MB;
That is embedded media DarkGDK style
That does have texture terrain - I forgot if I made a single press thing to do it - That code is so different already now and I know it doesn't have any good dynamic texture creation. If you load a texture (Surprised if there isn't something in there) and just do: dbTextureObject(JM->ID); or JM->textureObject("filename");
before the loop - you should be good