by Spike » Sat Aug 02, 2014 3:26 pm
first call clearscene(). this resets everything to defaults.
to move the 2d viewport around the screen:
setviewprop(VF_MIN, topleft);
setviewprop(VF_SIZE, topright-topleft);
alternatively:
setviewprop(VF_VIEWPORT, topleft, topright-topleft);
because we're lazy:
setviewprop(VF_DRAWENGINESBAR, TRUE);
setviewprop(VF_DRAWCROSSHAIR, TRUE);
then call addentities as appropriate.
to move the camera around the world, change VF_ORIGIN and VF_ANGLES. good luck determining the desired location. you can do this drawing the predraw function of the player entity if you need, and have one set up.
then call renderscene() to shove it onto screen.
repeat with different subregions
.