Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 0fe2ed5

Browse files
committed
Review changes
1 parent 467c2b1 commit 0fe2ed5

File tree

5 files changed

+33
-34
lines changed

5 files changed

+33
-34
lines changed

Main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,6 @@ int main(int argc, char *argv[]) {
19371937
if (g_NetworkServer.IsServerModeEnabled()) {
19381938
g_NetworkServer.Start();
19391939
g_FrameMan.SetMultiplayerMode(true);
1940-
19411940
g_AudioMan.SetMultiplayerMode(true);
19421941
g_AudioMan.SetSoundsVolume(0);
19431942
g_AudioMan.SetMusicVolume(0);

Managers/FrameMan.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ namespace RTE {
340340
/// <summary>
341341
/// Clears the message to be displayed on top of each player's screen.
342342
/// </summary>
343-
/// <param name="whichScreen">Which screen message to clear..</param>
343+
/// <param name="whichScreen">Which screen message to clear.</param>
344344
void ClearScreenText(int whichScreen = 0);
345345
#pragma endregion
346346

@@ -585,21 +585,19 @@ namespace RTE {
585585

586586
static constexpr unsigned short m_BPP = 32; //!< Color depth (bits per pixel).
587587

588-
// Resolution
589-
int m_ResX;
590-
int m_ResY;
591-
592-
// These are the new resolution settings that will take effect next time the FrameMan is started
593-
int m_NewResX;
594-
int m_NewResY;
588+
int m_ResX; //!< Display width.
589+
int m_ResY; //!< Display height.
590+
int m_NewResX; //!< New display width that will take effect next time the FrameMan is started.
591+
int m_NewResY; //!< New display height that will take effect next time the FrameMan is started.
595592

596593
bool m_Fullscreen; //!< Whether in fullscreen mode or not.
597594
int m_NxWindowed; //!< The number of times the windowed mode resolution should be multiplied and stretched across for better visibility.
598595

599-
// The number of times the fullscreen mode resolution should be multiplied and stretched across for better visibility
600-
// The internal virtual resolution (m_ResX, m_ResY) is 1/n of the actual fullscreen res that the graphics card outputs
596+
/// <summary>
597+
/// The number of times the fullscreen mode resolution should be multiplied and stretched across for better visibility.
598+
/// The internal virtual resolution (m_ResX, m_ResY) is 1/n of the actual fullscreen resolution that the graphics card outputs.
599+
/// </summary>
601600
int m_NxFullscreen;
602-
603601
int m_NewNxFullscreen; //!< This is the new fullscreen multiple that will take effect next time the FrameMan is started.
604602

605603
bool m_HSplit; //!< Whether the screen is split horizontally across the screen, ie as two splitscreens one above the other.

Managers/PostProcessMan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,16 @@ namespace RTE {
244244
// Set the screen blender mode for glows
245245
set_screen_blender(128, 128, 128, 128);
246246

247+
// Reference. Do not remove.
247248
//acquire_bitmap(m_BackBuffer8);
248249
//acquire_bitmap(m_BackBuffer32);
249250

250251
DrawDotGlowEffects();
251252
DrawPostScreenEffects();
252253

254+
// Reference. Do not remove.
253255
//release_bitmap(m_BackBuffer32);
254256
//release_bitmap(m_BackBuffer8);
255-
256257
// Set blender mode back??
257258
//set_trans_blender(128, 128, 128, 128);
258259

Managers/PostProcessMan.h

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -190,22 +190,22 @@ namespace RTE {
190190
std::list<PostEffect> m_ScreenRelativeEffects[c_MaxScreenCount]; //!<
191191
std::mutex ScreenRelativeEffectsMutex[c_MaxScreenCount]; //!<
192192

193-
BITMAP *m_YellowGlow; //!<
194-
size_t m_YellowGlowHash; //!<
193+
BITMAP *m_YellowGlow; //!< Bitmap for the yellow dot glow effect.
194+
BITMAP *m_RedGlow; //!< Bitmap for the red dot glow effect.
195+
BITMAP *m_BlueGlow; //!< Bitmap for the blue dot glow effect.
196+
197+
size_t m_YellowGlowHash; //!< Hash value for the yellow dot glow effect bitmap.
198+
size_t m_RedGlowHash; //!< Hash value for the red dot glow effect bitmap.
199+
size_t m_BlueGlowHash; //!< Hash value for the blue dot glow effect bitmap.
200+
201+
BITMAP *m_TempEffectBitmap_16; //!< Temporary 16x16 bitmap to rotate post effects in.
202+
BITMAP *m_TempEffectBitmap_32; //!< Temporary 32x32 bitmap to rotate post effects in.
203+
BITMAP *m_TempEffectBitmap_64; //!< Temporary 64x64 bitmap to rotate post effects in.
204+
BITMAP *m_TempEffectBitmap_128; //!< Temporary 128x128 bitmap to rotate post effects in.
205+
BITMAP *m_TempEffectBitmap_256; //!< Temporary 256x256 bitmap to rotate post effects in.
206+
BITMAP *m_TempEffectBitmap_512; //!< Temporary 512x512 bitmap to rotate post effects in.
195207

196-
BITMAP *m_RedGlow; //!<
197-
size_t m_RedGlowHash; //!<
198-
199-
BITMAP *m_BlueGlow; //!<
200-
size_t m_BlueGlowHash; //!<
201-
202-
//!< Temp bitmaps to rotate post effects in.
203-
BITMAP *m_TempEffectBitmap_16;
204-
BITMAP *m_TempEffectBitmap_32;
205-
BITMAP *m_TempEffectBitmap_64;
206-
BITMAP *m_TempEffectBitmap_128;
207-
BITMAP *m_TempEffectBitmap_256;
208-
BITMAP *m_TempEffectBitmap_512;
208+
private:
209209

210210
#pragma region Post Effect Handling
211211
/// <summary>
@@ -222,10 +222,10 @@ namespace RTE {
222222
/// <summary>
223223
/// Gets all screen effects that are located within a box in the scene. Their coordinates will be returned relative to the upper left corner of the box passed in here.
224224
/// </summary>
225-
/// <param name="left">Dimensions of the box.</param>
226-
/// <param name="top"></param>
227-
/// <param name="right"></param>
228-
/// <param name="bottom"></param>
225+
/// <param name="left">Position of box left plane (X start).</param>
226+
/// <param name="top">Position of box top plane (Y start).</param>
227+
/// <param name="right">Position of box right plane (X end).</param>
228+
/// <param name="bottom">Position of box bottom plane (Y end).</param>
229229
/// <param name="effectsList">The list to add the screen effects that fall within the box to. The coordinates of the effects returned here will be relative to the boxPos passed in above.</param>
230230
/// <param name="team">The team whose unseen area should block the glows.</param>
231231
/// <returns>Whether any active post effects were found in that box.</returns>
@@ -248,7 +248,7 @@ namespace RTE {
248248
size_t GetDotGlowEffectHash(DotGlowColor whichColor) const;
249249
#pragma endregion
250250

251-
private:
251+
#pragma region PostProcess Breakdown
252252
/// <summary>
253253
///
254254
/// </summary>
@@ -258,6 +258,7 @@ namespace RTE {
258258
///
259259
/// </summary>
260260
void DrawPostScreenEffects();
261+
#pragma endregion
261262

262263
/// <summary>
263264
/// Clears all the member variables of this PostProcessMan, effectively resetting the members of this abstraction level only.

System/Primitive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ namespace RTE {
344344
BitmapPrimitive(Vector pos, BITMAP * bitmap, float rotAngle) { BitmapPrimitive(-1, pos, bitmap, rotAngle); }
345345

346346
/// <summary>
347-
///
347+
/// Constructor method for BitmapPrimitive object.
348348
/// </summary>
349349
/// <param name="player">Player screen to draw this primitive on.</param>
350350
/// <param name="pos">Position of this primitive.</param>

0 commit comments

Comments
 (0)