mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 22:30:48 +00:00
Re-enable corona support
# Conflicts: # wadsrc/static/language.0 # wadsrc/static/language.csv
This commit is contained in:
parent
581f6e428e
commit
524bec6979
8 changed files with 7 additions and 17 deletions
|
@ -24,11 +24,9 @@
|
|||
#include "a_corona.h"
|
||||
#include "a_dynlight.h"
|
||||
|
||||
#if 0
|
||||
IMPLEMENT_CLASS(ACorona, false, false)
|
||||
|
||||
void ACorona::Tick()
|
||||
{
|
||||
Super::Tick();
|
||||
}
|
||||
#endif
|
|
@ -27,7 +27,6 @@ EXTERN_CVAR(Bool, gl_coronas)
|
|||
|
||||
class AActor;
|
||||
|
||||
#if 0
|
||||
class ACorona : public AActor
|
||||
{
|
||||
DECLARE_CLASS(ACorona, AActor)
|
||||
|
@ -37,4 +36,3 @@ public:
|
|||
|
||||
float CoronaFade = 0.0f;
|
||||
};
|
||||
#endif
|
|
@ -744,7 +744,7 @@ public:
|
|||
const double MinVel = EQUAL_EPSILON;
|
||||
|
||||
// Map Object definition.
|
||||
class AActor final : public DThinker
|
||||
class AActor : public DThinker
|
||||
{
|
||||
DECLARE_CLASS_WITH_META (AActor, DThinker, PClassActor)
|
||||
HAS_OBJECT_POINTERS
|
||||
|
|
|
@ -583,7 +583,6 @@ void HWDrawInfo::RenderPortal(HWPortal *p, FRenderState &state, bool usestencil)
|
|||
|
||||
void HWDrawInfo::DrawCorona(FRenderState& state, ACorona* corona, double dist)
|
||||
{
|
||||
#if 0
|
||||
spriteframe_t* sprframe = &SpriteFrames[sprites[corona->sprite].spriteframes + (size_t)corona->SpawnState->GetFrame()];
|
||||
FTextureID patch = sprframe->Texture[0];
|
||||
if (!patch.isValid()) return;
|
||||
|
@ -645,7 +644,6 @@ void HWDrawInfo::DrawCorona(FRenderState& state, ACorona* corona, double dist)
|
|||
vp[3].Set(x1, y1, 1.0f, u1, v1);
|
||||
|
||||
state.Draw(DT_TriangleStrip, vertexindex, 4);
|
||||
#endif
|
||||
}
|
||||
|
||||
static ETraceStatus CheckForViewpointActor(FTraceResults& res, void* userdata)
|
||||
|
@ -673,7 +671,6 @@ void HWDrawInfo::DrawCoronas(FRenderState& state)
|
|||
float timeElapsed = (screen->FrameTime - LastFrameTime) / 1000.0f;
|
||||
LastFrameTime = screen->FrameTime;
|
||||
|
||||
#if 0
|
||||
for (ACorona* corona : Coronas)
|
||||
{
|
||||
auto cPos = corona->Vec3Offset(0., 0., corona->Height * 0.5);
|
||||
|
@ -700,7 +697,6 @@ void HWDrawInfo::DrawCoronas(FRenderState& state)
|
|||
if (corona->CoronaFade > 0.0f)
|
||||
DrawCorona(state, corona, dist);
|
||||
}
|
||||
#endif
|
||||
|
||||
state.SetTextureMode(TM_NORMAL);
|
||||
screen->mViewpoints->Bind(state, vpIndex);
|
||||
|
@ -720,10 +716,10 @@ void HWDrawInfo::EndDrawScene(sector_t * viewsector, FRenderState &state)
|
|||
{
|
||||
state.EnableFog(false);
|
||||
|
||||
/*if (gl_coronas && Coronas.Size() > 0)
|
||||
if (gl_coronas && Coronas.Size() > 0)
|
||||
{
|
||||
DrawCoronas(state);
|
||||
}*/
|
||||
}
|
||||
|
||||
// [BB] HUD models need to be rendered here.
|
||||
const bool renderHUDModel = IsHUDModelForPlayerAvailable(players[consoleplayer].camera->player);
|
||||
|
|
|
@ -151,7 +151,7 @@ struct HWDrawInfo
|
|||
TArray<HWPortal *> Portals;
|
||||
TArray<HWDecal *> Decals[2]; // the second slot is for mirrors which get rendered in a separate pass.
|
||||
TArray<HUDSprite> hudsprites; // These may just be stored by value.
|
||||
//TArray<ACorona*> Coronas;
|
||||
TArray<ACorona*> Coronas;
|
||||
uint64_t LastFrameTime = 0;
|
||||
|
||||
TArray<MissingTextureInfo> MissingUpperTextures;
|
||||
|
|
|
@ -707,13 +707,11 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (thing->IsKindOf(NAME_Corona))
|
||||
{
|
||||
di->Coronas.Push(static_cast<ACorona*>(thing));
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
const auto &vp = di->Viewpoint;
|
||||
AActor *camera = vp.camera;
|
||||
|
|
|
@ -2629,7 +2629,7 @@ OptionMenu "OpenGLOptions" protected
|
|||
Option "$GLPREFMNU_SPRBILLFACECAMERA", gl_billboard_faces_camera, "OnOff"
|
||||
Option "$GLPREFMNU_PARTICLESTYLE", gl_particles_style, "Particles"
|
||||
Option "$GLPREFMNU_RENDERQUALITY", gl_seamless, "Precision"
|
||||
//Option "$GLPREFMNU_CORONAS", gl_coronas, "OnOff"
|
||||
Option "$GLPREFMNU_CORONAS", gl_coronas, "OnOff"
|
||||
StaticText " "
|
||||
Slider "$GLPREFMNU_MENUBLUR", gl_menu_blur, 0, 5.0, 0.5, 2
|
||||
StaticText " "
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*class Corona : Actor native
|
||||
class Corona : Actor native
|
||||
{
|
||||
Default
|
||||
{
|
||||
|
@ -7,4 +7,4 @@
|
|||
+NOINTERACTION
|
||||
+FORCEXYBILLBOARD
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue