~ change a few includes

This commit is contained in:
Johannes Theiner 2020-01-08 20:56:48 +01:00
parent f6f283dcfc
commit 463ec11332
5 changed files with 9 additions and 37 deletions

View File

@ -9,7 +9,6 @@
* @since: v0.0.1 * @since: v0.0.1
* draw circle, square, rectangle and mouse drawing * draw circle, square, rectangle and mouse drawing
*/ */
void outPutPixel(int windowHeight, int windowWidth, vkvm::Color brushColor);
int main() { int main() {
vkvm::initialize(0); vkvm::initialize(0);
@ -112,18 +111,4 @@ int main() {
} }
return 0; return 0;
}
/***************************read pixel in shared memory and test output in console******************************************/
void outPutPixel(int windowHeight, int windowWidth, vkvm::Color penColor) {
for(int y = 0; y < windowHeight; y++) {
for(int x = 0; x < windowWidth; x++) {
if(vkvm::getPixel(x, y).getRed() == penColor.getRed()) {
std::cout << "*";
} else {
std::cout << " ";
}
}
std::cout << "\n";
}
} }

View File

@ -1,8 +1,3 @@
//
// Created by shaohuatong on 06.12.19.
//
#include <iostream>
#include "Circle.hpp" #include "Circle.hpp"
Circle::Circle() { Circle::Circle() {

View File

@ -1,7 +1,3 @@
//
// Created by shaohuatong on 06.12.19.
//
#ifndef SIMPLE_DRAW_CIRCLE_HPP #ifndef SIMPLE_DRAW_CIRCLE_HPP
#define SIMPLE_DRAW_CIRCLE_HPP #define SIMPLE_DRAW_CIRCLE_HPP

View File

@ -1,10 +1,7 @@
// #include "Color.hpp"
// Created by shaohuatong on 28.11.19.
//
#include "DrawRender.hpp" #include "DrawRender.hpp"
#include "vkvm.hpp"
#include <algorithm> #include <algorithm>
#include <unistd.h>
#include <thread> #include <thread>
#include <chrono> #include <chrono>

View File

@ -4,17 +4,16 @@
#ifndef SIMPLE_DRAW_DRAWRENDER_HPP #ifndef SIMPLE_DRAW_DRAWRENDER_HPP
#define SIMPLE_DRAW_DRAWRENDER_HPP #define SIMPLE_DRAW_DRAWRENDER_HPP
#include <string> #include "Cursor.hpp"
#include "Color.hpp"
#include "vkvm.hpp"
#include <iostream>
#include <vector>
#include "utils.hpp"
#include <cmath>
#include "Rectangle.hpp" #include "Rectangle.hpp"
#include "Circle.hpp" #include "Circle.hpp"
#include "Shapes.hpp" #include "Shapes.hpp"
#include "Cursor.hpp" #include "utils.hpp"
#include "vkvm.hpp"
#include <cmath>
#include <string>
#include <iostream>
#include <vector>
#define CIRCLE 0 #define CIRCLE 0
#define RECTANGLE 1 #define RECTANGLE 1