Latest bitmap Activity
Using profiling to inform coding decisions; a real life example.
To start off, I added the ability for ships to respawn. Giving some forgiveness if the player dies.
That works by adding a spawn component to the entity that needs to respawn fighter ships.
When respawning, you need to know how lo…
I have a bmp and I want to texture a mesh with it.I calculated the uvs for the mesh and sent them to vertex shader.I have no idea how to take the data from.bmp file and send it to pixel shader.
Bitmap bitmap = new Bitmap(texturePath);
The vertexShader.hlsl:
#pragma pack_matrix( row_major )
cbuff…
@undefined That might work for selecting a target to attack, but not for evaluating the best position to move to, which is the most important question. Additionally is the problem of threat influence maps. You can't have an accurate threat map without knowing exactly which tiles are visible.
I spent…
It is defined at the bottom of the code, and is called from WM_PAINT. This function blits the double buffer to the screen. The program fades a bitmap in and out using a loop. I'm reading a little more and found that 256 color bitmaps require an RGBQUAD struct to be initialized with a palette.
I have tried XORing the flags and get different results. Probably a case of undefined behaviour? None of the docs really talk about XORing two modes together. Anyway, I finally understand how this effect is done, and it's pretty simple. I switched out one graphic for another, ran the…