This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required( VERSION 3.0 ) | |
set( CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ) | |
# Create Project | |
project( solution ) | |
add_executable( project main.cpp ) | |
# Set OpenCVConfig.cmake Search Directory | |
set( OpenCV_DIR ) | |
if( NOT CMAKE_CL_64 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' blscript_save_viewport_buffer_as_image.py | |
''' | |
import bpy | |
import bgl | |
def main(): | |
def get_region_view3d(): | |
''' | |
context = bpy.context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
// otherwise C++ function names are mangled | |
extern "C" { | |
void float_multiply_array(float *data, int w, int h, int ncpp) { | |
int length = w*h; | |
int currentPixelIndex = 0; | |
OlderNewer