mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-24 00:10:10 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
33 lines
614 B
C#
33 lines
614 B
C#
using System;
|
|
|
|
namespace Editor
|
|
{
|
|
internal enum RenderHints
|
|
{
|
|
Antialiasing = 0x01,
|
|
TextAntialiasing = 0x02,
|
|
SmoothPixmapTransform = 0x04,
|
|
Qt4CompatiblePainting = 0x20,
|
|
LosslessImageRendering = 0x40,
|
|
};
|
|
|
|
public partial class GraphicsView
|
|
{
|
|
public bool Antialiasing
|
|
{
|
|
set => _graphicsview.setRenderHint( RenderHints.Antialiasing, value );
|
|
}
|
|
|
|
public bool TextAntialiasing
|
|
{
|
|
set => _graphicsview.setRenderHint( RenderHints.TextAntialiasing, value );
|
|
}
|
|
|
|
public bool BilinearFiltering
|
|
{
|
|
set => _graphicsview.setRenderHint( RenderHints.SmoothPixmapTransform, value );
|
|
}
|
|
|
|
}
|
|
}
|