New modular driver set for video
Started outlining how the modular driver set will look for video drawing routines. Currently supports Drawing pixels to the screen & Flushing backbuffer -> frontbuffer. Still very much test code, tracer is used everywhere for debugging, NOT DEVELOP READY. Many more draw routines need implementing - such as, but not limited to; drawRect, drawBitmap, drawLine, drawCurve, drawCircle. TODO: Implement the aforementioned routines in all VESA modes + WindowManager.
This commit is contained in:
1 parent
78c060c114
commit
3ae349fbc8
10 files changed
+385
-135
No files matched your search
@@ -1,3 +1,22 @@
|
||||
// Copyright 2021 Kieron Morris
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{
|
||||
Include->Color - Provides types relating to color/graphics.
|
||||
|
||||
@author(Kieron Morris <[email protected]>)
|
||||
}
|
||||
unit color;
|
||||
|
||||
interface
|
||||
@@ -31,6 +50,9 @@ type
|
||||
const
|
||||
black : TRGB32 = (B: 000; G: 000; R: 000; A: 000);
|
||||
white : TRGB32 = (B: 255; G: 255; R: 255; A: 000);
|
||||
red : TRGB32 = (B: 000; G: 000; R: 255; A: 000);
|
||||
green : TRGB32 = (B: 000; G: 255; R: 000; A: 000);
|
||||
blue : TRGB32 = (B: 255; G: 000; R: 000; A: 000);
|
||||
|
||||
implementation
|
||||
|
||||
|
||||
Reference in new issue
Block a user