Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////
- // small.c - small lite-C example
- ////////////////////////////////////////////////////////////////////////////
- #include <acknex.h>
- #include <default.c>
- #include <d3d9.h>
- function main()
- {
- video_set(1280,1024,32,1);
- // Load the terrain named "small.hmp"
- level_load("small.hmp");
- // Now create the "earth.mdl" model at x = 10, y = 20, z = 30 in our 3D world
- ent_create("earth.mdl", vector(10, 20, 30), NULL);
- // NULL tells the engine that the model doesn't have to do anything
- var i;
- D3DGAMMARAMP gamma_ramp;
- LPDIRECT3DDEVICE9 pd3dDev;
- pd3dDev = (LPDIRECT3DDEVICE9)draw_begin();
- memset(&gamma_ramp, 128, sizeof(D3DGAMMARAMP));a
- pd3dDev->SetGammaRamp(0, 0, &gamma_ramp);
- }
Add Comment
Please, Sign In to add comment