mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Obliterate hsBool
This commit is contained in:
@ -117,7 +117,7 @@ struct PipelineParams
|
||||
|
||||
int Width;
|
||||
int Height;
|
||||
hsBool Windowed;
|
||||
bool Windowed;
|
||||
int ColorDepth;
|
||||
int AntiAliasingAmount;
|
||||
int AnisotropicLevel;
|
||||
@ -125,9 +125,9 @@ struct PipelineParams
|
||||
int VideoQuality;
|
||||
int Shadows;
|
||||
int PlanarReflections;
|
||||
hsBool VSync;
|
||||
bool VSync;
|
||||
#ifndef PLASMA_EXTERNAL_RELEASE
|
||||
hsBool ForceSecondMonitor;
|
||||
bool ForceSecondMonitor;
|
||||
#endif // PLASMA_EXTERNAL_RELEASE
|
||||
};
|
||||
|
||||
@ -152,12 +152,12 @@ public:
|
||||
// visList is write only. On output, visList is UNSORTED visible spans.
|
||||
// Called once per scene render (maybe multiple times per frame).
|
||||
// Returns true if rendering should proceed.
|
||||
virtual hsBool PreRender(plDrawable* drawable, hsTArray<int16_t>& visList, plVisMgr* visMgr=nil) = 0;
|
||||
virtual bool PreRender(plDrawable* drawable, hsTArray<int16_t>& visList, plVisMgr* visMgr=nil) = 0;
|
||||
// PrepForRender - perform any processing on the drawable data nessecary before rendering.
|
||||
// visList is read only. On input, visList is SORTED visible spans, and is ALL spans which will be drawn this render.
|
||||
// Called once per scene render.
|
||||
// Returns true if rendering should proceed.
|
||||
virtual hsBool PrepForRender(plDrawable* drawable, hsTArray<int16_t>& visList, plVisMgr* visMgr=nil) = 0;
|
||||
virtual bool PrepForRender(plDrawable* drawable, hsTArray<int16_t>& visList, plVisMgr* visMgr=nil) = 0;
|
||||
// Render - draw the drawable to the current render target.
|
||||
// visList is read only. On input, visList is SORTED visible spans. May not be the complete list of visible spans
|
||||
// for this drawable.
|
||||
@ -177,8 +177,8 @@ public:
|
||||
virtual void CheckVertexBufferRef(plGBufferGroup* owner, uint32_t idx) = 0;
|
||||
virtual void CheckIndexBufferRef(plGBufferGroup* owner, uint32_t idx) = 0;
|
||||
|
||||
virtual hsBool OpenAccess(plAccessSpan& dst, plDrawableSpans* d, const plVertexSpan* span, hsBool readOnly) = 0;
|
||||
virtual hsBool CloseAccess(plAccessSpan& acc) = 0;
|
||||
virtual bool OpenAccess(plAccessSpan& dst, plDrawableSpans* d, const plVertexSpan* span, bool readOnly) = 0;
|
||||
virtual bool CloseAccess(plAccessSpan& acc) = 0;
|
||||
|
||||
virtual void CheckTextureRef(plLayerInterface* lay) = 0;
|
||||
|
||||
@ -220,37 +220,37 @@ public:
|
||||
virtual void ClearRenderTarget(const hsColorRGBA* col = nil, const float* depth = nil) = 0; // col/depth are overrides for current default.
|
||||
virtual void SetClear(const hsColorRGBA* col=nil, const float* depth=nil) = 0; // sets the default clear for current render target.
|
||||
virtual hsColorRGBA GetClearColor() const = 0;
|
||||
virtual float GetClearDepth() const = 0;
|
||||
virtual float GetClearDepth() const = 0;
|
||||
virtual hsGDeviceRef *MakeRenderTargetRef( plRenderTarget *owner ) = 0;
|
||||
virtual void PushRenderTarget( plRenderTarget *target ) = 0;
|
||||
virtual plRenderTarget *PopRenderTarget( void ) = 0;
|
||||
|
||||
virtual hsBool BeginRender() = 0;
|
||||
virtual hsBool EndRender() = 0;
|
||||
virtual bool BeginRender() = 0;
|
||||
virtual bool EndRender() = 0;
|
||||
virtual void RenderScreenElements( void ) = 0;
|
||||
|
||||
virtual hsBool BeginDrawable(plDrawable* d) = 0;
|
||||
virtual hsBool EndDrawable(plDrawable* d) = 0;
|
||||
virtual bool BeginDrawable(plDrawable* d) = 0;
|
||||
virtual bool EndDrawable(plDrawable* d) = 0;
|
||||
|
||||
virtual void BeginVisMgr(plVisMgr* visMgr) = 0;
|
||||
virtual void EndVisMgr(plVisMgr* visMgr) = 0;
|
||||
|
||||
virtual hsBool IsFullScreen() const = 0;
|
||||
virtual uint32_t Width() const = 0;
|
||||
virtual uint32_t Height() const = 0;
|
||||
virtual uint32_t ColorDepth() const = 0;
|
||||
virtual bool IsFullScreen() const = 0;
|
||||
virtual uint32_t Width() const = 0;
|
||||
virtual uint32_t Height() const = 0;
|
||||
virtual uint32_t ColorDepth() const = 0;
|
||||
virtual void Resize( uint32_t width, uint32_t height ) = 0;
|
||||
|
||||
// Culling. Might be used in Update before bothering to do any serious computation.
|
||||
virtual hsBool TestVisibleWorld(const hsBounds3Ext& wBnd) = 0;
|
||||
virtual hsBool TestVisibleWorld(const plSceneObject* sObj) = 0;
|
||||
virtual hsBool HarvestVisible(plSpaceTree* space, hsTArray<int16_t>& visList) = 0;
|
||||
virtual hsBool SubmitOccluders(const hsTArray<const plCullPoly*>& polyList) = 0;
|
||||
virtual bool TestVisibleWorld(const hsBounds3Ext& wBnd) = 0;
|
||||
virtual bool TestVisibleWorld(const plSceneObject* sObj) = 0;
|
||||
virtual bool HarvestVisible(plSpaceTree* space, hsTArray<int16_t>& visList) = 0;
|
||||
virtual bool SubmitOccluders(const hsTArray<const plCullPoly*>& polyList) = 0;
|
||||
|
||||
virtual void SetDebugFlag( uint32_t flag, hsBool on ) = 0;
|
||||
virtual hsBool IsDebugFlagSet( uint32_t flag ) const = 0;
|
||||
virtual void SetDebugFlag( uint32_t flag, bool on ) = 0;
|
||||
virtual bool IsDebugFlagSet( uint32_t flag ) const = 0;
|
||||
virtual void SetMaxCullNodes(uint16_t n) = 0; // Debug/analysis only
|
||||
virtual uint16_t GetMaxCullNodes() const = 0; // Debug/analysis only
|
||||
virtual uint16_t GetMaxCullNodes() const = 0; // Debug/analysis only
|
||||
|
||||
// Properties
|
||||
enum Properties
|
||||
@ -259,18 +259,18 @@ public:
|
||||
// MakeTextureRef, regardless of the kUserOwnsBitmap flag
|
||||
};
|
||||
|
||||
virtual hsBool CheckResources() = 0; // Do we need to call LoadResources?
|
||||
virtual bool CheckResources() = 0; // Do we need to call LoadResources?
|
||||
virtual void LoadResources() = 0;
|
||||
|
||||
virtual void SetProperty( uint32_t prop, hsBool on ) = 0;
|
||||
virtual hsBool GetProperty( uint32_t prop ) const = 0;
|
||||
virtual uint32_t GetMaxLayersAtOnce() const = 0;
|
||||
virtual void SetProperty( uint32_t prop, bool on ) = 0;
|
||||
virtual bool GetProperty( uint32_t prop ) const = 0;
|
||||
virtual uint32_t GetMaxLayersAtOnce() const = 0;
|
||||
|
||||
// Drawable type mask
|
||||
virtual void SetDrawableTypeMask( uint32_t mask ) = 0;
|
||||
virtual uint32_t GetDrawableTypeMask( void ) const = 0;
|
||||
virtual uint32_t GetDrawableTypeMask( void ) const = 0;
|
||||
virtual void SetSubDrawableTypeMask( uint32_t mask ) = 0;
|
||||
virtual uint32_t GetSubDrawableTypeMask( void ) const = 0;
|
||||
virtual uint32_t GetSubDrawableTypeMask( void ) const = 0;
|
||||
|
||||
// View state
|
||||
virtual hsPoint3 GetViewPositionWorld() const = 0;
|
||||
@ -289,7 +289,7 @@ public:
|
||||
virtual void SetDepth(float hither, float yon) = 0;
|
||||
|
||||
virtual void SetZBiasScale( float scale ) = 0;
|
||||
virtual float GetZBiasScale( void ) const = 0;
|
||||
virtual float GetZBiasScale( void ) const = 0;
|
||||
|
||||
virtual const hsMatrix44& GetWorldToCamera() const = 0;
|
||||
virtual const hsMatrix44& GetCameraToWorld() const = 0;
|
||||
@ -311,16 +311,16 @@ public:
|
||||
virtual void PopOverrideMaterial(hsGMaterial* restore) = 0;
|
||||
virtual hsGMaterial* GetOverrideMaterial() const = 0;
|
||||
|
||||
virtual plLayerInterface* AppendLayerInterface(plLayerInterface* li, hsBool onAllLayers = false) = 0;
|
||||
virtual plLayerInterface* RemoveLayerInterface(plLayerInterface* li, hsBool onAllLayers = false) = 0;
|
||||
virtual plLayerInterface* AppendLayerInterface(plLayerInterface* li, bool onAllLayers = false) = 0;
|
||||
virtual plLayerInterface* RemoveLayerInterface(plLayerInterface* li, bool onAllLayers = false) = 0;
|
||||
|
||||
virtual uint32_t GetMaterialOverrideOn(hsGMatState::StateIdx category) const = 0;
|
||||
virtual uint32_t GetMaterialOverrideOff(hsGMatState::StateIdx category) const = 0;
|
||||
virtual uint32_t GetMaterialOverrideOn(hsGMatState::StateIdx category) const = 0;
|
||||
virtual uint32_t GetMaterialOverrideOff(hsGMatState::StateIdx category) const = 0;
|
||||
|
||||
virtual hsGMatState PushMaterialOverride(const hsGMatState& state, hsBool on) = 0;
|
||||
virtual hsGMatState PushMaterialOverride(hsGMatState::StateIdx cat, uint32_t which, hsBool on) = 0;
|
||||
virtual void PopMaterialOverride(const hsGMatState& restore, hsBool on) = 0;
|
||||
virtual const hsGMatState& GetMaterialOverride(hsBool on) const = 0;
|
||||
virtual hsGMatState PushMaterialOverride(const hsGMatState& state, bool on) = 0;
|
||||
virtual hsGMatState PushMaterialOverride(hsGMatState::StateIdx cat, uint32_t which, bool on) = 0;
|
||||
virtual void PopMaterialOverride(const hsGMatState& restore, bool on) = 0;
|
||||
virtual const hsGMatState& GetMaterialOverride(bool on) const = 0;
|
||||
|
||||
virtual hsColorOverride PushColorOverride(const hsColorOverride& over) = 0;
|
||||
virtual void PopColorOverride(const hsColorOverride& restore) = 0;
|
||||
@ -330,13 +330,13 @@ public:
|
||||
virtual void SubmitClothingOutfit(plClothingOutfit* co) = 0;
|
||||
|
||||
// These all return true if the gamma was successfully set.
|
||||
virtual hsBool SetGamma(float eR, float eG, float eB) = 0;
|
||||
virtual hsBool SetGamma(const uint16_t* const tabR, const uint16_t* const tabG, const uint16_t* const tabB) = 0; // len table = 256.
|
||||
virtual hsBool SetGamma(float e) { return SetGamma(e, e, e); }
|
||||
virtual hsBool SetGamma(const uint16_t* const table) { return SetGamma(table, table, table); }
|
||||
virtual bool SetGamma(float eR, float eG, float eB) = 0;
|
||||
virtual bool SetGamma(const uint16_t* const tabR, const uint16_t* const tabG, const uint16_t* const tabB) = 0; // len table = 256.
|
||||
virtual bool SetGamma(float e) { return SetGamma(e, e, e); }
|
||||
virtual bool SetGamma(const uint16_t* const table) { return SetGamma(table, table, table); }
|
||||
|
||||
// flipVertical is for the AVI writer, which wants it's frames upside down
|
||||
virtual hsBool CaptureScreen( plMipmap *dest, bool flipVertical = false, uint16_t desiredWidth = 0, uint16_t desiredHeight = 0 ) = 0;
|
||||
virtual bool CaptureScreen( plMipmap *dest, bool flipVertical = false, uint16_t desiredWidth = 0, uint16_t desiredHeight = 0 ) = 0;
|
||||
|
||||
// Returns an un-named (GetKey()==nil) mipmap same dimensions as targ. You are responsible for deleting said mipMap.
|
||||
virtual plMipmap* ExtractMipMap(plRenderTarget* targ) = 0;
|
||||
@ -353,7 +353,7 @@ public:
|
||||
int GetDesktopColorDepth() { return fDesktopParams.ColorDepth; }
|
||||
PipelineParams *GetDefaultParams() { return &fDefaultPipeParams; }
|
||||
|
||||
virtual void ResetDisplayDevice(int Width, int Height, int ColorDepth, hsBool Windowed, int NumAASamples, int MaxAnisotropicSamples, hsBool vSync = false ) = 0;
|
||||
virtual void ResetDisplayDevice(int Width, int Height, int ColorDepth, bool Windowed, int NumAASamples, int MaxAnisotropicSamples, bool vSync = false ) = 0;
|
||||
static PipelineParams fDefaultPipeParams;
|
||||
static PipelineParams fInitialPipeParams;
|
||||
plDisplayMode fDesktopParams;
|
||||
|
Reference in New Issue
Block a user