Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg
)
cd C:\vcpkg
.\vcpkg install qt5:x64-windows
Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg
)
cd C:\vcpkg
.\vcpkg install qt5:x64-windows
void ConvertMatToGL(const cv::Mat& src,GLuint* texID){ | |
if(src.empty() == true) | |
return; | |
glDeleteTextures(1, texID); | |
glPixelStorei(GL_UNPACK_ALIGNMENT,1); | |
glGenTextures(1, texID); | |
glBindTexture(GL_TEXTURE_2D, *texID); | |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); |
function Add-EnvPath { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string] $Path, | |
[ValidateSet('Machine', 'User', 'Session')] | |
[string] $Container = 'Session' | |
) | |
if ($Container -ne 'Session') { |
// Creating a node graph editor for Dear ImGui | |
// Quick sample, not production code! | |
// This is quick demo I crafted in a few hours in 2015 showcasing how to use Dear ImGui to create custom stuff, | |
// which ended up feeding a thread full of better experiments. | |
// See https://github.com/ocornut/imgui/issues/306 for details | |
// Fast forward to 2023, see e.g. https://github.com/ocornut/imgui/wiki/Useful-Extensions#node-editors | |
// Changelog | |
// - v0.05 (2023-03): fixed for renamed api: AddBezierCurve()->AddBezierCubic(). |
The MIT License (MIT)
Copyright (c) 2015 Christopher Tarquini
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
/* | |
* Sample file using the Linux kernel coding convention. | |
* | |
* https://www.kernel.org/doc/Documentation/CodingStyle | |
* | |
* General rules: | |
* - Indents are tabs and must be 8 spaces wide. | |
* - Each line must be at most 80 characters long. | |
* - Use C-style comments. | |
* - File names should be lower-case.c |
// Sample file using the Google C++ coding standard. | |
// | |
// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml | |
// | |
// General rules: | |
// - Indents are two spaces. No tabs should be used anywhere. | |
// - Each line must be at most 80 characters long. | |
// - Comments can be // or /* but // is most commonly used. | |
// - File names should be lower_case.c or lower-case.c | |
// |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
#ifndef ERROR_CODE_HPP_ | |
#define ERROR_CODE_HPP_ | |
// define self error code | |
namespace base { | |
enum system_error_t { | |
kAccessDenied = ERROR_ACCESS_DENIED, | |
}; | |
class system_category_t : public std::error_category { |
QPixmap GraphicsItem::toPixmap() const | |
{ | |
if (!scene()) { | |
qWarning() << "[ControlItem::toPixmap] scene is null."; | |
return QPixmap(); | |
} | |
QRectF r = boundingRect(); | |
QPixmap pixmap(r.width(), r.height()); | |
pixmap.fill(QColor(0, 0, 0, 0)); |