You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1998 - 1999
|
|
//
|
|
// File: d3drmframearrayobj.cpp
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
// d3drmFrameArrayObj.cpp : Implementation of CDirectApp and DLL registration.
|
|
|
|
#include "stdafx.h"
|
|
#include "Direct.h"
|
|
#include "dms.h"
|
|
#include "d3drmFrameArrayObj.h"
|
|
#include "d3drmFrame3Obj.h"
|
|
|
|
CONSTRUCTOR(_dxj_Direct3dRMFrameArray, {});
|
|
DESTRUCTOR(_dxj_Direct3dRMFrameArray, {});
|
|
GETSET_OBJECT(_dxj_Direct3dRMFrameArray);
|
|
|
|
GET_DIRECT_R(_dxj_Direct3dRMFrameArray,getSize, GetSize, long)
|
|
|
|
|
|
|
|
HRESULT C_dxj_Direct3dRMFrameArrayObject::getElement(long i, I_dxj_Direct3dRMFrame3 **frame){
|
|
HRESULT hr;
|
|
IDirect3DRMFrame *realframe=NULL;
|
|
IDirect3DRMFrame3 *realframe3=NULL;
|
|
|
|
hr=m__dxj_Direct3dRMFrameArray->GetElement((DWORD)i,&realframe);
|
|
if FAILED(hr) return hr;
|
|
|
|
hr=realframe->QueryInterface(IID_IDirect3DRMFrame3,(void**)&realframe3);
|
|
realframe->Release();
|
|
if FAILED(hr) return hr;
|
|
|
|
INTERNAL_CREATE(_dxj_Direct3dRMFrame3,(IDirect3DRMFrame3*)realframe3,frame);
|
|
return hr;
|
|
}
|
|
|
|
|
|
|