simplerr / project-invasion Goto Github PK
View Code? Open in Web Editor NEWA 3D game in development
Home Page: simplers.org
A 3D game in development
Home Page: simplers.org
Take for grant that all textures are stored in /data.
void Runnable::setRenderStates()
{
// This code sets texture filters, which helps to smooth out distortions
// when you scale a texture.
HR(gd3dDevice->SetSamplerState(0, D3DSAMP_MAGFILTER, D3DTEXF_LINEAR));
HR(gd3dDevice->SetSamplerState(0, D3DSAMP_MINFILTER, D3DTEXF_LINEAR));
HR(gd3dDevice->SetSamplerState(0, D3DSAMP_MIPFILTER, D3DTEXF_LINEAR));
gd3dDevice->SetRenderState(D3DRS_LIGHTING, FALSE);
gd3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE);
gd3dDevice->SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA);
gd3dDevice->SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA);
gd3dDevice->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
// Indicates that we are using 2D texture coordinates.
HR(gd3dDevice->SetTextureStageState(
0, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2));
}
Not desired for all draw calls.
Life, ammo, minimap, enemies left and stuff like that should be included in the UI.
Use the render to texture technique.
Something in World::drawToMinimap() results in an error when changing to fullscreen. !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.