mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-12 07:30:35 +00:00
Merge branch 'miami' into lcs
# Conflicts: # README.md # premake5.lua # src/audio/MusicManager.cpp # src/core/main.cpp # src/core/re3.cpp # src/extras/postfx.cpp # src/render/Font.cpp
This commit is contained in:
commit
f6910d35f7
42 changed files with 801 additions and 283 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "common.h"
|
||||
|
||||
#include "main.h"
|
||||
#include "WeaponEffects.h"
|
||||
#include "TxdStore.h"
|
||||
#include "Sprite.h"
|
||||
|
@ -103,6 +104,8 @@ CWeaponEffects::Render(void)
|
|||
float w, h;
|
||||
if ( CSprite::CalcScreenCoors(gCrossHair.m_vecPos, &pos, &w, &h, true) )
|
||||
{
|
||||
PUSH_RENDERGROUP("CWeaponEffects::Render");
|
||||
|
||||
float recipz = 1.0f / pos.z;
|
||||
CSprite::RenderOneXLUSprite_Rotate_Aspect(pos.x, pos.y, pos.z,
|
||||
w, h,
|
||||
|
@ -119,6 +122,8 @@ CWeaponEffects::Render(void)
|
|||
gCrossHair.m_fRotation += 0.02f;
|
||||
if ( gCrossHair.m_fRotation > TWOPI )
|
||||
gCrossHair.m_fRotation = 0.0;
|
||||
|
||||
POP_RENDERGROUP();
|
||||
}
|
||||
|
||||
RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)FALSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue