- 博客(11)
- 资源 (2)
- 收藏
- 关注
转载 Timer Actor
For this tutorial we are using the standard first person C++ template with starter content. If you don't know how to add a new actor class to your project, please visit the Add C++ Actor Class post....
2018-09-27 15:01:43 269
转载 保存hbitmap到文件
void SaveBitmapToFile(HBITMAP hBitmap, char* szfilename){ HDC hdc; //设备描述表 int ibits; WORD wbitcount; //当前显示分辨率下每个像素所占字节数 //位图中每个像素所占字节数,定义调色板大小,位图中像素字节大小,位图文件大小 ,写入文件字节数 DWORD dwpalette...
2018-09-26 16:17:05 2174 1
原创 tick代理的使用
UCLASS()class VCTEST_API AMyActor2 : public AActor{ GENERATED_BODY() public: // Sets default values for this actor's properties AMyActor2();protected: // Called when the game starts or whe...
2018-09-19 14:56:50 455
原创 UE接收windows消息
// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "Runtime/ApplicationCore/Public/Windows/WindowsApplication.h"#include "Runtime/Slate/Public/Fram...
2018-09-19 10:59:36 825
原创 读取摄像机像素
UCLASS()class LHCVCTEST_API UMyGameViewportClient : public UGameViewportClient{ GENERATED_BODY() protected: void TakeScreenShot(); virtual void Draw(FViewport* Viewport, FCanvas* SceneCanvas)...
2018-09-12 17:49:48 484
原创 读取RenderTarget像素
FTextureRenderTargetResource* RTResource = m_textureRenderTarget->GameThread_GetRenderTargetResource(); int width = m_textureRenderTarget->GetSurfaceWidth(); int height = m_textureRenderTarg...
2018-09-12 16:47:05 2122
转载 Reading the pixels from a UTexture2D
Reading the pixels from a UTexture2D is not particularly difficult, indeed this post on Unreal AnswerHub resume almost perfectly how to do it. However, there are some points missing and one could go i...
2018-09-12 15:48:10 433 1
原创 读取UTexture2D的像素值
void AMyRenderTarget::setMyRenderTarget(UTextureRenderTarget2D* textureRenderTarget){ m_textureRenderTarget = textureRenderTarget; m_Texture = textureRenderTarget->ConstructTexture2D(this, FStr...
2018-09-12 15:45:47 3072 2
转载 【OpenGL】详解第一个OpenGL程序
写在前面 OpenGL能做的事情太多了!很多程序也看起来很复杂。很多人感觉OpenGL晦涩难懂,原因大多是被OpenGL里面各种语句搞得头大,一会gen一下,一会bind一下,一会又active一下。搞到最后都不知道自己在干嘛,更有可能因为某一步的顺序错误导致最后渲染出错,又或者觉得记下这些操作的顺序是非常烦人的一件事。那么,OpenGL为什么会长成这个样子呢?这篇文章旨在通过一个最简单的...
2018-09-07 14:22:21 271
转载 OpenGL 4.0 Tutorials 第三章:初始化 OpenGL 4.0
原文地址: http://www.rastertek.com/gl40tut03.html Tutorial 3: Initializing OpenGL 4.0第三章:初始化 OpenGL 4.0 This tutorial will be the first real introduction to working with OpenGL 4.0. We will ...
2018-09-07 11:30:54 588
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人