| 4074 | } |
| 4075 | |
| 4076 | void CEditor::RenderSelectedImage(CUIRect View) const |
| 4077 | { |
| 4078 | std::shared_ptr<CEditorImage> pSelectedImage = Map()->SelectedImage(); |
| 4079 | if(pSelectedImage == nullptr) |
| 4080 | return; |
| 4081 | |
| 4082 | View.Margin(10.0f, &View); |
| 4083 | if(View.h < View.w) |
| 4084 | View.w = View.h; |
| 4085 | else |
| 4086 | View.h = View.w; |
| 4087 | float Max = maximum<float>(pSelectedImage->m_Width, pSelectedImage->m_Height); |
| 4088 | View.w *= pSelectedImage->m_Width / Max; |
| 4089 | View.h *= pSelectedImage->m_Height / Max; |
| 4090 | Graphics()->TextureSet(pSelectedImage->m_Texture); |
| 4091 | Graphics()->BlendNormal(); |
| 4092 | Graphics()->WrapClamp(); |
| 4093 | Graphics()->QuadsBegin(); |
| 4094 | IGraphics::CQuadItem QuadItem(View.x, View.y, View.w, View.h); |
| 4095 | Graphics()->QuadsDrawTL(&QuadItem, 1); |
| 4096 | Graphics()->QuadsEnd(); |
| 4097 | Graphics()->WrapNormal(); |
| 4098 | } |
| 4099 | |
| 4100 | void CEditor::RenderSounds(CUIRect ToolBox) |
| 4101 | { |
nothing calls this directly
no test coverage detected