Get it finally working (somehow)
- Add working example - Add Namespace defs for Iron Ctr and C3D - Add Exit func / Vertex / Index counter to Iron - Add format bytes function to utils - Make stb_image optional - Compute texture uv's - Clear Everything in Drawlist::Clear - Use Amy::mat4 as matrix lib - Fix the most stupid rendering bug (i -> m_idx)
This commit is contained in:
@@ -66,6 +66,8 @@ void Texture::Load(kvr<uc> pixels, int w, int h, int bpp, Image::Format fmt) {
|
||||
if (!Utils::IsSingleBitNum(pSize.y)) {
|
||||
pSize.y = Utils::NextPow2(pSize.y);
|
||||
}
|
||||
pUv = Amy::fvec4(0, 1.f, (float)w / (float)pSize.x,
|
||||
1.f - ((float)h / (float)pSize.y));
|
||||
auto filter = GPU_NEAREST;
|
||||
auto Format = image2TexFmt(fmt);
|
||||
pTex = new C3D_Tex;
|
||||
|
||||
Reference in New Issue
Block a user